IntelliJ IDEA makes it possible to change font size (zoom) in the active editor, and reset font size to the default value. These operations apply to the active editor only. In the other editor tabs, font size is not affected.
- Press ⌘,⌘,⌘,⌥F7⌃⌥S or choose (for Windows and Linux) or (for macOS) on the main menu, and then go to .
- Make sure that the setting Change font size (Zoom) with Ctrl+MouseWheel is enabled.
- Place the caret in the editor.
-
While keeping the
^/
⌘
key pressed, rotate the mouse wheel.
As you rotate the mouse wheel forward, font size grows larger; as you rotate the mouse wheel backwards,
font size decreases.
The macOS users can use the trackpad "Pinch-to-Zoom" gesture to change the size of the font and the whole editing area.
- Press ⇧⌘A⇧⌘A⌘3⌃⇧A⌃⇧A.
- In the popup frame, start typing Increase font size or Decrease font size, and press ⏎⏎⏎⏎⏎ as soon as the corresponding command gets the focus.
- The font will grow larger or smaller.
- Press ⇧⌘A⇧⌘A⌘3⌃⇧A⌃⇧A.
- In the popup frame, start typing Reset font size and press ⏎⏎⏎⏎⏎ as soon as the corresponding command gets the focus.
- The default font size will be restored.
There are no default keyboard shortcuts associated with the actions Increase font size, Decrease font size, and Reset font size actions. However, you can assign your own shortcuts to these actions.