How to enable Dark Mode for Xcode [duplicate]

徘徊边缘 提交于 2019-11-27 01:26:52

问题


This question already has an answer here:

  • Is it possible to enable Dark Mode on Xcode 10 on High Sierra? 6 answers

Apple announced a new Dark Mode for Xcode 10. I've downloaded the beta but now I can't find any option to turn it on. I'm currently on macOS 10.13 High Sierra.


回答1:


On macOS 10.13 High Sierra and earlier

The Dark Mode is only available on macOS 10.14 Mojave.

On macOS 10.14 Mojave and later

1. On Installation: You'll get asked for the appearance as part of the installation of Mojave.

2. After Installation: If you want to change it afterwards go to System Preferences > General and change the Appearance.




回答2:


If you use macOS Mojave (10.14.+), you can enable Dark Mode only for Xcode 10 using this command line.

defaults write com.apple.dt.Xcode NSWindowDarkChocolate -bool true

Workaround:

defaults write com.apple.dt.Xcode _NSSystemAppearanceOverride DarkAppearance

Source (Steve Troughton-Smith's tweet)



来源:https://stackoverflow.com/questions/50696931/how-to-enable-dark-mode-for-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!