Use the General page of the Settings/Preferences dialog to configure the editor behaviour and customize its view.
|Change font size with Ctrl/Command+Mouse Wheel|
If this checkbox is selected, a particular editor font size can be changed by rolling the mouse wheel while holding the Ctrl key.
This checkbox also affects font size in quick documentation lookup.
If the checkbox is cleared, rolling the mouse wheel while holding the Ctrl key scrolls the editor.
|Move code fragments with drag-and-drop||If this checkbox is selected, you can drag-and-drop code fragments in the editor.|
|Use soft wraps in editor|
If this checkbox is selected, soft wraps (or word wraps) are used in the editor.
The horizontal scroll bar is not normally shown when this option is enabled.
However, in certain cases, when a line cannot be "soft-wrapped", the horizontal scroll bar still appears (for example, if a line consists of a single string that is wider than the visible area.)
|Use the original line's indent for wrapped fragments||Select this checkbox to use custom indentation for soft wraps on resizing the editor or console. Use the Add additional indent field to specify the indent number.|
|Only show soft-wrap indicators for the current line|
If this checkbox is selected, the soft wrap characters will be shown in the active logical line only.
Otherwise, soft wraps characters will be shown at the end of each line, and at the beginning of each next line.
|Allow caret placement|
|Show virtual space at the bottom of the file||If this checkbox is selected, the currently edited line (even if it is the final line) can be scrolled to the top of the screen. GoLand adds the necessary amount of virtual lines.|
|When moving by words|
Use this list to configure where the caret should stop when moved by words. You can select from the following options:
|Upon line break|
Use this list to configure where the caret should stop on line breaks. You can select from the following options:
|Strip trailing spaces on Save for|
Select the mode in which GoLand will handle trailing spaces at the end of lines on file saving:
|Delete trailing spaces on caret line||If this option is selected, trailing spaces will be stripped on the line where the caret is placed on save operation.|
|Ensure an empty line at the end of a file on Save||Select this checkbox to have GoLand automatically add an empty line in the end of a file during the save procedure.|
|Highlight modified lines in gutter||Select this checkbox if you want added/modified lines to be highlighted with a color stripe in the left editor gutter.|
|Highlight lines with whitespace-only modifications with a different color|
This option only becomes available if the Highlight modified lines in gutter option is enabled.
Select this checkbox if you want lines where only whitespaces were added/removed to be highlighted with a different color from lines with more significant modifications.
|Smooth scrolling||If this option is enabled, the editor scrolls the page when you navigate to an element, instead of just jumping to the target location.|
|Recent file limit||In this field, specify how many file names can be included in the list of recent files.|
|Recent locations limit||In this field, specify how many recently viewed code snippets can be included in the list of recent locations.|
|Copy (Ctrl+C) a text fragment as|
|Color scheme for copied fragment|
Use this list to select a color scheme for the text copy. You can select from the following options: