在Xcode中增加字体大小是一件痛苦的事情。
当前回答
现在是2011年8月,Xcode 4.1仍然是一场噩梦。为什么不允许Cmd+和Cmd-像其他地方一样。 <结束咆哮>
正如其他受访者所建议的那样,我建议你在调整字体之前复制你喜欢的主题,因为没有简单的方法可以撤销。
在我的例子中,我所要做的就是增大字体大小。幸运的是,你可以选择多个项目(Shift+select或Cmd+select),并为所有选择的字体设置在一个瞬间。
轻微的缓解严重的刺激。
其他回答
我使用cmd+,它很好地增加.. cmq-也一样
对于Xcode 4.1
仍然是一个巨大的痛苦。糟糕的UI设计(但我的心态似乎与那些制作100多个字符变量和方法名的软件工程师的心态不一样。我的抱怨够多了)
我将为当前版本修改以前的一篇文章。
Close any projects you have open in Xcode (Otherwise the Font window will be inaccessible while a project is open.) Go to XCode > Preferences > Fonts & Color From the 'Theme' box select the theme you want to modify (or select the theme you want to modify and click the "+" button at the bottom of the theme list to clone it first for backup, for there is no undo option) In the source editor box there is a list of types of text that you may set the font for: Plain text Comments Documentation Comments . . . Select any or all items from the source editor list and the name and size of the font for that particular text will show up in the 'Font' window below the 'Source Editor' window. (If you happen to skip highlighting one of these, you will be able to get to the Font Inspector and select new sizes, but will wonder why the changes you make are not being applied!) In the 'Font' window, click the small, almost hidden, and surely poorly design 'T' icon to the right of the font name and size. Voila! In only 14 keystrokes you are able to get the Font inspector window! Your existing font will be preselected in the font inspector. Whatever changes you make now will be applied to the text types you selected in the 'Source Editor' window. e.g. All Fonts > Menlo > Regular > 14 Close the windows you opened on this hunt for the holy grail.
祝贺你。你现在可以阅读你的代码了。 这难道不痛苦吗?
去XCode >首选项>字体& 颜色 双击字体条目以获得字体检查器窗口 选择您想增加/减少大小的所有字体条目 在字体检查器窗口中选择相同的字体(例如:All Fonts > Menlo > Regular > 14)
小心,因为没有撤销!
我还发现,您可以更改由“打印”主题控制的打印字体。我希望打印输出与默认值相同,但是使用更大的字体。
将“打印”重命名为“printing1”(选择打印主题并单击它,它应该允许您更改名称)。 点击“+”,从“New Theme from Template”选择“Default” 重命名为“印刷” 点击字体区域的“Source Editor”和cmd-A选择所有字体 通过点击“T”图标并选择所需的字体大小,将字体大小更改为所需的值(我喜欢12点)
在此之后,打印输出应该匹配新的“打印”模板(即颜色和更大,或无论你如何制作模板),关键是打印从“打印”主题中获取其格式。
对于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构建的