如何在Xcode的代码编辑器中禁用抗锯齿,但不影响整个系统?
答案:如何在Xcode中禁用代码编辑器中的抗锯齿,而不会影响整个系统?
对于 Xcode 3.x,必要的终端命令是:
defaults write com.apple.xcode AppleAntiAliasingThreshold <some integer value>
对于 Xcode 4 和 5,解决方法如下:
defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold <some integer value>
对于 Xcode 6,您可能需要在终端控制台中输入以下内容:
defaults write com.apple.dt.Xcode NSFontDefaultScreenFontSubstitutionEnabled YES
然后,像往常一样:
defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold <some integer value>
使用 AppleAntiAliasingThreshold 24
可以得到你想要的效果。
所以这确实有效,但为了使其生效,您必须:
转到首选项->外观并更改“关闭字体大小文本平滑处理”并设置字体磅值。
其他有用的命令:
defaults -currentHost write .GlobalPreferences AppleSmoothFontsSizeThreshold -int 16
defaults -currentHost write .GlobalPreferences AppleFontSmoothing -int 0
另外,如果你只想更改特定的应用程序而不是所有内容,这个方法可以解决问题:
defaults write com.apple.safari AppleSmoothFixedFontsSizeThreshold -int 16
defaults write com.apple.safari AppleSmoothFontsSizeThreshold -int 16
defaults write com.apple.safari AppleAntiAliasingThreshold -int 16
这将关闭任何小于大小16的字体的反锯齿。
我在编辑代码时也遇到了同样的问题,花了我很长时间才解决。
此外,您可以更改任何应用程序,只需查看已安装的应用程序,从命令终端cd到〜/ Library / Preferences,然后ls以查看可引用的已安装应用程序的名称。
希望这能帮助到某些人!
defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold 24 绝对有效!
非常感谢您:在我的CRT上,抗锯齿=模糊。 因此,像Jaime Chan一样,我曾经在xcode 3.x中关闭抗锯齿。