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


当前回答

以下步骤:

去xcode_preferences->然后选择字体和颜色->选择所有的文本选项->点击字体部分,改变你想要的字体

其他回答

当在XCode中从[Preferences]更改字体时(在复制一个与你想要的颜色匹配的模板后),你可以选择多个条目并一次更改字体。使用[shift]选择一个范围或[cmd]选择多个单独的条目(例如,您可以同时选择'comments'和'strings',只更改它们的字体)。

史蒂夫

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

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

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

方法1

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

方法2

只需调整cmd +或cmd -

实际上,这很简单:

转到首选项 然后是字体和颜色 然后通过点击“纯文本”选择所有的文本选项,然后按cmd+a 然后点击字体部分的小t 然后改变字体和大小,如你所愿,它将适用于所有的代码

好运!

Xcode menu > Preferences > Font & Color > Category

双击纯文本,弹出菜单将出现。从这里开始改变。