在Xcode中增加字体大小是一件痛苦的事情。
当前回答
我使用cmd+,它很好地增加.. cmq-也一样
其他回答
你可以使用以下方法:
出版社xcode - >首选项 选择字体和颜色 选择列表中的任意字体并按cmd+a(选择所有字体) 选择窗口底部所有编辑器字体的字体大小
对于 XCODE 13+
在最新版本的编辑器(目前Xcode 13)中,只需按“cmd”+“+”来增加文本大小。减少文本大小按“cmd”+“-”。事情就是这么简单。除此之外,你可以在Xcode Preferences -> Themes中为每个类别指定文本大小/字体/颜色。
您可以使用此插件使用⌘+或⌘-(最新版本的Xcode中的Control -和Control +)更改字体大小。插件开发人员更改了快捷键,以避免与Interface Builder热键冲突):
https://github.com/zats/AdjustFontSize-Xcode-Plugin
对于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.
祝贺你。你现在可以阅读你的代码了。 这难道不痛苦吗?
现在是2011年8月,Xcode 4.1仍然是一场噩梦。为什么不允许Cmd+和Cmd-像其他地方一样。 <结束咆哮>
正如其他受访者所建议的那样,我建议你在调整字体之前复制你喜欢的主题,因为没有简单的方法可以撤销。
在我的例子中,我所要做的就是增大字体大小。幸运的是,你可以选择多个项目(Shift+select或Cmd+select),并为所有选择的字体设置在一个瞬间。
轻微的缓解严重的刺激。
推荐文章
- keychain上的分发证书中缺少私钥
- Xcode的构建文件夹在哪里?
- Xcode 4在目标设备上说“finished running <my app>”——什么都没有发生
- 图书馆吗?静态的?动态吗?或框架?另一个项目中的项目
- Xcode 6 gitignore文件应该包括什么?
- 类PLBuildVersion在两个框架中都实现了
- 应用程序加载器在上传iOS应用程序时卡住了“与iTunes商店进行身份验证”
- Xcode:构建失败,但没有错误消息
- 你能在Linux下运行Xcode吗?
- 启动屏幕故事板不显示图像
- 改变UISegmentedControl的字体大小
- 在SwiftUI中创建一个VStack填充屏幕宽度
- 如何折叠所有的方法在Xcode?
- 自动适合Android的TextView
- 是否有可能更新一个本地化的故事板的字符串?