在Xcode中增加字体大小是一件痛苦的事情。
当前回答
您可以使用此插件使用⌘+或⌘-(最新版本的Xcode中的Control -和Control +)更改字体大小。插件开发人员更改了快捷键,以避免与Interface Builder热键冲突):
https://github.com/zats/AdjustFontSize-Xcode-Plugin
其他回答
更新!看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 menu > Preferences > Font & Color > Category
双击纯文本,弹出菜单将出现。从这里开始改变。
对于 XCODE 13+
在最新版本的编辑器(目前Xcode 13)中,只需按“cmd”+“+”来增加文本大小。减少文本大小按“cmd”+“-”。事情就是这么简单。除此之外,你可以在Xcode Preferences -> Themes中为每个类别指定文本大小/字体/颜色。
去Xcode ->首选项…->字体和颜色-> '选择所有类型的字体'默认选项卡。
在此选择从底部控件应用字体大小。
对于Xocde 12.0 beta 5:
在底部你会看到字体族。
推荐文章
- keychain上的分发证书中缺少私钥
- Xcode的构建文件夹在哪里?
- Xcode 4在目标设备上说“finished running <my app>”——什么都没有发生
- 图书馆吗?静态的?动态吗?或框架?另一个项目中的项目
- Xcode 6 gitignore文件应该包括什么?
- 类PLBuildVersion在两个框架中都实现了
- 应用程序加载器在上传iOS应用程序时卡住了“与iTunes商店进行身份验证”
- Xcode:构建失败,但没有错误消息
- 你能在Linux下运行Xcode吗?
- 启动屏幕故事板不显示图像
- 改变UISegmentedControl的字体大小
- 在SwiftUI中创建一个VStack填充屏幕宽度
- 如何折叠所有的方法在Xcode?
- 自动适合Android的TextView
- 是否有可能更新一个本地化的故事板的字符串?