How to zoom in Xcode on a code window
Asked Answered
P

8

29

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?

Phytoplankton answered 12/9, 2014 at 13:44 Comment(4)
I think the best way doing it, just go to XCode-> Preference-> Fonts and Colors-> click on the T logo under the font.Twoup
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'tPhytoplankton
System Prefs -> Accessibility -> ZoomJosephinajosephine
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.Phytoplankton
P
14

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

Phytoplankton answered 12/9, 2014 at 16:12 Comment(1)
this is outdated solution, as it is not working now with Xcode 8Natelson
P
40

For Xcode 9 and above:

  • Use Cmd + + to increase text size
  • Use Cmd + - to decrease text size
Permanency answered 23/1, 2018 at 0:2 Comment(1)
Works for XCode 10.0+ alsoTimmytimocracy
L
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.

Laurenalaurence answered 5/11, 2015 at 4:1 Comment(0)
P
14

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

Phytoplankton answered 12/9, 2014 at 16:12 Comment(1)
this is outdated solution, as it is not working now with Xcode 8Natelson
M
5

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]
Magnetism answered 28/2, 2023 at 13:14 Comment(1)
Many keyboards use Cmd-plus to increase the font. I wonder if Cmd-colon is specific to the Turkish-Q keyboard.Idiotism
C
2

Click two times on the screen and drag left or right

Calvert answered 18/1, 2020 at 3:59 Comment(0)
A
1

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

Anthropocentric answered 22/2, 2016 at 0:10 Comment(0)
A
0

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

Aimeeaimil answered 23/2, 2022 at 23:5 Comment(0)
D
0

Go to system settings, keyboard, keyboard shortcuts,app shortcuts

There write menu name as Increase and select what ever shortcut you want to use

Designation answered 14/11, 2023 at 20:3 Comment(1)
Why not simply use Cmd-plus and Cmd-minus? It's built into Xcode. No need to create any app shortcuts.Idiotism

© 2022 - 2024 — McMap. All rights reserved.