在 Xcode 中禁用抗锯齿功能?
如何在 Xcode 的代码编辑器内禁用抗锯齿功能,而不是在系统范围内禁用抗锯齿功能?
How does one disable antialiasing inside the code editor in Xcode, but not system-wide?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于 Xcode 3.x,必要的终端命令是:
对于 Xcode 4 & 5 是:
对于 Xcode 6,您可能首先需要在终端控制台输入以下内容:
然后,像往常一样:
使用
AppleAntiAliasingThreshold 24
应该可以满足您的需求。For Xcode 3.x the necessary terminal command is:
For Xcode 4 & 5 it is:
For Xcode 6 you may first need to enter the following at a terminal console:
Then, as per usual:
Using
AppleAntiAliasingThreshold 24
should get you what you want.所以这确实有效,但为了使其生效,您必须:
转到首选项->外观并更改“关闭字体大小的文本平滑”并设置字体 pt。尺寸。
其他有用的命令:
另外,如果您只想更改特定的应用程序,而不是所有内容,这可以解决问题:
这将关闭任何小于大小 16 的字体的抗锯齿功能
。我在编辑时遇到了同样的问题代码,我花了很长时间才解决。
此外,您可以更改所需的任何应用程序,只需检查已安装的应用程序,从命令终端 cd 到 ~/Library/Preferences,然后 ls 查看已安装应用程序的可引用名称。
希望这对某人有帮助!
so this does work, but in order for it to take effect, you must:
go to preferences->appearance and change "turn off text smoothing for font sizes" and set the font pt. size.
other commands that are helpful:
also, if you just want to change a specific application, instead of everything, this does the trick:
this will turn off anti aliasing for any font that is smaller than size 16.
I had this same problem for editing code, took me ages to work it out.
Also, you can change any application you want, just check out your installed apps, from a command terminal cd to ~/Library/Preferences and then ls to see the referencable names of installed apps.
Hope this helps someone!
默认写入 com.apple.dt.Xcode AppleAntiAliasingThreshold 24
绝对有效!
非常感谢:在我的 CRT 上,抗锯齿 = 模糊。
所以,像 Jaime Chan 一样,我曾经在 xcode 3.x 中关闭抗锯齿功能
defaults write com.apple.dt.Xcode AppleAntiAliasingThreshold 24
definitely works !
Many thanks for this : on my CRT, antialiasing = blurring.
So, like Jaime Chan, i used to turn off antialias in xcode 3.x