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


当前回答

你可以使用以下方法:

出版社xcode - >首选项 选择字体和颜色 选择列表中的任意字体并按cmd+a(选择所有字体) 选择窗口底部所有编辑器字体的字体大小

其他回答

你可以使用以下方法:

出版社xcode - >首选项 选择字体和颜色 选择列表中的任意字体并按cmd+a(选择所有字体) 选择窗口底部所有编辑器字体的字体大小

之前所有的答案都集中在可能发生的事情上:改变编辑器和调试区域的字体大小。但是如果你共享你的屏幕导航器(文件导航器等)仍然很小。您现在可以在设置>一般>导航器大小中更改三个预设大小。

这将使你的文件和文件夹在展示时更具可读性。

更新!看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!

解决方案是-你需要复制主题,然后修改你刚刚制作的副本,并应用该副本-唷!

按“Command”+“+”增加文本大小。 按“Command”+“-”减小文本大小。

在Xcode 13中,你也可以调整

导航器字体大小

在Preferences面板中:

Xcode 13 ->首选项->通用->导航大小

默认情况下,它与系统字体比例匹配,但您可以覆盖设置并选择三个不同的选项之一:“小”,“中”或“大”。

制作方:Artem M

Easisest解决方案:

关闭所有打开的项目。 Xcode >首选项>字体和颜色 确保按CMD+A选择所有可能的文本类型。然后从选择器中更改字体大小。