How to increase font size in the Xcode editor?
XcodeFont SizeXcode Problem Overview
To increase font-size in Xcode is a pain.
Xcode Solutions
Solution 1 - Xcode
For Xcode 4.1
Still a huge pain. Poor UI design (But my mindset does not seem to match the mindset of software engineers that make 100+ character variable and method names. Enough of my complaining)
I'll modify a previous post for the current version.
-
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.
Congratulations. Your may now read your code. Wasn't that painless?
Solution 2 - Xcode
Easisest solution:
-
Close any open projects.
-
Xcode > Preferences > Font & Colors
-
Make sure to press CMD+A to select all possible text types. Then change the font size from the picker.
Solution 3 - Xcode
Update! - Behold Xcode 9 to the rescue! Now you can use cmd + to increase the fonts with Xcode 9. It took 5 Major releases for you to get it, Apple! But better late than never.
figured it out - however it was not very intuitive.
First some Pain Points
-
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!
The solution is that - you need to duplicate the theme and then modify the copy you just made and apply that copy - phew!
Solution 4 - Xcode
- Go to XCode > Preferences > Fonts & Color
- Double click on a font entry to get the Font inspector window
- Select all font entries with sizes you'd like to increase/decrease
- In the Font inspector window select the same font (e.g. All Fonts > Menlo > Regular > 14)
Watch out because there's no undo!
Solution 5 - Xcode
You can use this plugin to change the font size using ⌘ +
or ⌘ -
(Control -
and Control +
in the latest versions of Xcode. The plugin developers changed the shortcut to avoid conflict with Interface Builder hotkeys):
Solution 6 - Xcode
You can use the following:
- Press xcode->preferences
- select fonts and colors
- select ANY font in the list and press cmd+a (select all fonts)
- select font size for all editor fonts at the bottom of the window
Solution 7 - Xcode
Go to Xcode -> preference -> fonts and color, then pick the presentation one. The font will be enlarged automatically.
Solution 8 - Xcode
Actually, this is very easy:
- Go to preferences
- Then to font and colors
- Then select all the text options by clicking on "plain text" then pressing cmd+a
- then click the little t in the font section
- then change the font and size as you wish and it will apply to all the code
Good luck!
Solution 9 - Xcode
I used cmd+ and it worked well to increase.. Same for decreasing cmq-
Solution 10 - Xcode
Go to
Xcode menu > Preferences > Font & Color > Category
Double-click on Plain Text, a popup menu will come up. Change it from there.
Solution 11 - Xcode
When changing fonts in XCode from [Preferences] (after duplicating a template that matches colours close to what you want), you can select multiple entries and change the fonts all at once. Use [shift] to select a range or [cmd] to select multiple individual entries (e.g. you might select both 'comments' and 'strings' and change only their fonts).
Steve
Solution 12 - Xcode
I found that in the Preferences
, there is no fonts and colors
selection. Guess the version is different, following is the one that works for the latest version.
Method 1
- Go to
Xcode
->Preferences
- Click
Themes
- Click the
T
symbol in the middle of the font - Adjust the size at the bottom right corner
Method 2
Simply adjust with cmd +
or cmd -
Solution 13 - Xcode
For Xcode Version 12.3 and above (not sure if it works for a little old versions, but you can give it a try)
Xcode
-> Preferences -> Themes
-> Select your favourite theme on left panel
-> SourceEditor
-> Select All (`cmd + A`)
-> Click on T option
-> Select size
Solution 14 - Xcode
For XCODE 13 +
In newest version of Editor (currently Xcode 13) Just press "cmd" + "+" for increasing text size. For decresing text size press "cmd" + "-" . It is as simple as that. Apart from that you can specify text size /font/color for each category in Xcode Preferences -> Themes.
Solution 15 - Xcode
I also found that you can change the fonts for printing which is controlled by the "Printing" theme. I wanted the print output to be the same as the default, but with a larger font.
-
rename "printing" to "printing1" (select the printing theme and click on it and it should allow you to change the name).
-
click the "+" and select "Default" from the "New Theme From Template" selection
-
rename it "Printing"
-
click in the font area for "Source Editor" and cmd-A to select all of the fonts
-
change the font size to some desired value (I like 12 point) by clicking the "T" icon and selecting the desired font size
After this the printouts should match the new "Printing" template (i.e. in color and bigger, or however you make the template), the key is that printing takes its formating from the "Printing" Theme.
Solution 16 - Xcode
Go to Xcode -> Preferences... -> Font & Colors -> 'select all types of font in' Default tab.
On this Selection apply Font Size from bottom control.
Solution 17 - Xcode
Apply following some steps:
Go to xcode_preferences->Then select font and colors->select all the text options->click on the font section and change fonts u want
Solution 18 - Xcode
All previous answers focus on what was possible: change the font size of the editor and debug area. But if you're sharing your screen navigators (File Navigators, etc.) are still tiny. You can change the size now to three presets in Settings > General > Navigator Size
.
This will make your files and folders more readable while presenting.
Solution 19 - Xcode
It is Aug 2011, Xcode 4.1 and it continues to be nightmare. Why not allow Cmd+ and Cmd- like everywhere else. < end rant >
As suggested by other respondents I suggest that you copy your preferred theme before you tweak the fonts for there is no ease way to undo.
In my case, all I wanted to do was increase the font size. Mercifully you can select multiple items (Shift+select or Cmd+select) and set the font for all the ones selected in one fell swoop.
Minor relief for a major irritation.
Solution 20 - Xcode
For Xcode 12: (beta 3)
For the code editing windows, use the new
Editor -> Font Size -> Increase
or
Editor -> Font Size -> Decrease
menu items. This globally increases or decreases the font sizes for all editing windows. There is also an
Editor -> Font Size -> Reset
option. These also respond to the ⌘+ or ⌘- keyboard shortcuts.
By default, the file navigator on the left side corresponds to the
System Preferences -> General -> Sidebar icon size
You can also override the system size inside Xcode using the
Xcode -> Preferences -> General -> Navigator Size
Solution 21 - Xcode
Solution 22 - Xcode
- Press "Command" + "+" for increasing text size.
- Press "Command" + "-" For decreasing text size.
With Xcode 13 you can also adjust the
> Navigator font size
inside the Preferences panel:
> Xcode 13 -> Preferences -> General -> Navigator Size
By default, it matches the system font scale, but you can override the settings and choose one of three different options: "Small", "Medium" or "Large".
Credits: Artem M