GoLand 2023.2 Help

Change editor font size

The editor font size is configured as follows:

  • The default font size is set on the Editor | Font page of the IDE settings Control+Alt+S. It will be used in the editor by for all newly opened documents, unless overridden in the current color scheme.

  • The default font size can be overridden in the selected color scheme. That is controlled with the Use color scheme font instead of default checkbox on the Editor | Color Scheme | Color Scheme Font page of the IDE settings Control+Alt+S, and the new font size is also set on that page.

There are also several ways to change the editor font size without specifying it in the settings:

Use Ctrl/Cmd+mouse wheel to change font size in the current document

  1. Press Control+Alt+S to open the IDE settings and then select Editor | General.

  2. Select Change font size with Ctrl/Cmd+Mouse Wheel in:

  3. Choose Active editor below that checkbox.

  4. Now you can press Control and while holding it, rotate the mouse wheel to increase or decrease the font size in the current document.

  5. If you close and reopen the document, the font size will be reset to the default font or to the color scheme font according to your settings.

Use Ctrl/Cmd+mouse wheel to change font size for all documents

  1. Press Control+Alt+S to open the IDE settings and then select Editor | General.

  2. Select Change font size with Ctrl/Cmd+Mouse Wheel in:

  3. Choose All editors below that checkbox.

  4. Now you can press Control and while holding it, rotate the mouse wheel to increase or decrease the font size for all documents.

  5. When you change the font size this way, the new font size is saved in the current color scheme and will apply to all open documents as well as to the newly opened ones. If necessary, you can change it on the Editor | Color Scheme | Color Scheme Font page of the IDE settings Control+Alt+S.

Use the keyboard to change font size in all documents

  1. In the editor, press Alt+Shift+. to increase the font size globally, and Alt+Shift+, to decrease it.

    GoLand displays a zoom indicator on the bottom of the editor that shows the current font size and the default one, which you can roll back.

  2. The zoom indicator is enabled by default. To disable it, open the Settings dialog (Control+Alt+S), go to Advanced Settings, and clear the Show zoom indicator option in the Editor section.

Use the keyboard to change font size in the current document

  1. Press Control+Alt+S to open the IDE settings and then select Keymap.

  2. Use the search box to find Increase font size, Decrease font size, and Reset font size actions.

  3. Assign the desired shortcuts to these actions and save the changes.

  4. Now you can use these shortcuts to manipulate font size in the current document.

  5. As an alternative to assigning custom shortcuts, you can invoke these actions via Find Action Control+Shift+A.

Last modified: 20 June 2023