在Xcode中增加字体大小是一件痛苦的事情。
当前回答
实际上,这很简单:
转到首选项 然后是字体和颜色 然后通过点击“纯文本”选择所有的文本选项,然后按cmd+a 然后点击字体部分的小t 然后改变字体和大小,如你所愿,它将适用于所有的代码
好运!
其他回答
更新!看Xcode 9来拯救你! 现在你可以使用cmd +来增加Xcode 9的字体。 你花了5个主要版本才得到它,苹果!但迟到总比不到好。
我算出来了,不过不是很直观。
首先是一些痛点
When You try to change the font size directly using edit -> format -> font, nothing happens! - Not a good UX ... moreover why play dumb when you can tell user that they are using default or "System-owned" theme and they cannot change it? - Bad Design and more bad UX ... Why keep this option (Cmd t) alive, which by the way is most standard way to increase font size across most well behaved mac apps, if you do not want user to change the font this way? In Xcode preferences, when you try to change the font size by clicking on "fonts and colors", thats when XCode gives a pop-up saying what needs to be done. Also making a duplicate and then changing the fonts and colors is a lot of work rather than giving a button that says "Restore to Defaults" if Apple is so worried about the user messing up the default settings!
解决方案是-你需要复制主题,然后修改你刚刚制作的副本,并应用该副本-唷!
当在XCode中从[Preferences]更改字体时(在复制一个与你想要的颜色匹配的模板后),你可以选择多个条目并一次更改字体。使用[shift]选择一个范围或[cmd]选择多个单独的条目(例如,您可以同时选择'comments'和'strings',只更改它们的字体)。
史蒂夫
之前所有的答案都集中在可能发生的事情上:改变编辑器和调试区域的字体大小。但是如果你共享你的屏幕导航器(文件导航器等)仍然很小。您现在可以在设置>一般>导航器大小中更改三个预设大小。
这将使你的文件和文件夹在展示时更具可读性。
去XCode >首选项>字体& 颜色 双击字体条目以获得字体检查器窗口 选择您想增加/减少大小的所有字体条目 在字体检查器窗口中选择相同的字体(例如:All Fonts > Menlo > Regular > 14)
小心,因为没有撤销!
对于Xcode版本12.3及以上(不确定它是否适用于一些旧版本,但你可以尝试一下)
Xcode
-> Preferences -> Themes
-> Select your favourite theme on left panel
-> SourceEditor
-> Select All (`cmd + A`)
-> Click on T option
-> Select size
推荐文章
- Xcode 4挂在“附加到(应用程序名称)”
- 为什么单元测试中的代码不能找到包资源?
- Xcode 10的对象库去哪了?
- Xcode 10的UI元素在哪里?
- Xcode构建失败“架构x86_64未定义的符号”
- 如何使用Xcode创建。ipa文件?
- 我可以在没有“构建和运行”的情况下启动iPhone模拟器吗?
- Xcode 4 -在新的Macintosh安装上的配置文件上“没有找到有效的签名标识”错误
- Xcode +删除所有断点
- Swift:理解// MARK
- 自定义dealloc和ARC (Objective-C)
- 你常用的Xcode快捷键有哪些?
- 确保您的项目构建设置正在生成一个dSYM文件。对于所有配置,DEBUG_INFORMATION_FORMAT都应该设置为dwarf-with-dsym
- 如何改变时间和时区在iPhone模拟器?
- 为iOS模拟器构建,但链接框架'****.framework'是为iOS构建的