在Xcode中增加字体大小是一件痛苦的事情。


当前回答

对于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 12:(beta 3)

对于代码编辑窗口,请使用new

编辑器->字体大小->增加

or

编辑器->字体大小->减少

菜单项。这将全局地增加或减少所有编辑窗口的字体大小。还有一个

编辑器->字体大小->重置

选择。这些也响应⌘+或⌘-键盘快捷键。

默认情况下,左侧的文件导航器对应于

系统首选项->常规->侧栏图标大小

你也可以在Xcode中使用

Xcode -> Preferences -> General -> Navigator Size

对于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版本12.3及以上(不确定它是否适用于一些旧版本,但你可以尝试一下)

Xcode

-> Preferences -> Themes 
-> Select your favourite theme on left panel 
-> SourceEditor 
-> Select All (`cmd + A`) 
-> Click on T option 
-> Select size

现在是2011年8月,Xcode 4.1仍然是一场噩梦。为什么不允许Cmd+和Cmd-像其他地方一样。 <结束咆哮>

正如其他受访者所建议的那样,我建议你在调整字体之前复制你喜欢的主题,因为没有简单的方法可以撤销。

在我的例子中,我所要做的就是增大字体大小。幸运的是,你可以选择多个项目(Shift+select或Cmd+select),并为所有选择的字体设置在一个瞬间。

轻微的缓解严重的刺激。

我发现在首选项中,没有字体和颜色选择。我猜版本不一样,下面是最新版本的

方法1

进入Xcode ->首选项 点击主题 点击字体中间的T符号 调整右下角的大小

方法2

只需调整cmd +或cmd -