25

How do you zoom in to see code better in xcode. I'm looking for a shortcut, and not to change the projects display preferences. Also using CTRL + two fingers on mouse is not suitable as I'm using a multi-monitor set up and that zooms both monitors. I only want to zoom in on the code text. I found another solution here that allows zooming on the storyboard : Storyboard Zoom In/Out Keyboard Shortcut but this doesn't work on any of the code files.

Any ideas?

Community
  • 1
  • 1
Linda Keating
  • 2,215
  • 7
  • 31
  • 63
  • 2
    I think the best way doing it, just go to XCode-> Preference-> Fonts and Colors-> click on the T logo under the font. – Frans Raharja Kurniawan Sep 12 '14 at 13:46
  • Hi Bejibun thanks - but I was hoping for a shortcut. It's not really practical to constantly change the preferences. Most text editors provide the ability to either mouse zoom or use a keyboard shortcut to increase the font size. I find it strange that XCode doesn't – Linda Keating Sep 12 '14 at 13:49
  • 1
    System Prefs -> Accessibility -> Zoom – Paul R Sep 12 '14 at 13:55
  • 1
    Hi Paul, thanks for your response. But that is a system wide preference and yes it does allow me to zoom, but I'm using two monitors and it zooms both monitors. What I want to do is zoom the text on the active window only. – Linda Keating Sep 12 '14 at 14:06

7 Answers7

36

For XCode 9 and above:

  • Use Cmd + + to increase text size
  • Use Cmd + - to decrease text size
Luciano Rodríguez
  • 2,239
  • 3
  • 19
  • 32
23

I'm using xcode 7:
1. Xcode menu-> Preferences.
2. Choose the tab Fonts & Colors.
3. Choose theme on the left side.
4. On the right side cmd+A to choose all type of source.
5. In font field, click to T icon.
6. Choose a font size that you want to set.

Pham Duoc
  • 330
  • 2
  • 5
14

I needed to install a plugin to have the functionality - This is the plugin https://github.com/zats/AdjustFontSize-Xcode-Plugin

Linda Keating
  • 2,215
  • 7
  • 31
  • 63
2

Click two times on the screen and drag left or right

1

In Xcode 7.2 you can change the font size and colors on Xcode menu (preferences).

Carolina
  • 21
  • 2
0

Option (⌥ alt) + mouse scroll wheel works for Xcode13.2.1 on mac to zoom in/out in the storyboard.

KLwork
  • 1
0

On my machine (Xcode 14.2, macOS 13.2.1, Turkish-Q keyboard) the shortcuts to change font size is like that:

To increase: ⌘:

To decrease: ⌘-

You can see the shortcuts by navigating:

  • Menu bar
  • Editor
  • Font Size [somewhere on the middle]
fthdgn
  • 1,339
  • 1
  • 13
  • 18