GoLand 2019.3 Help

Tabs and Indents

Function or procedure call



Use tab character

Use TAB characters instead of SPACE characters for indents.

Smart tabs

Use combination of TAB and SPACE characters depending on the context.

Tab size

Set the size of a TAB in a number of spaces.


Set the size of an indent in a number of spaces.

Continuation indent

Add a number of SPACE characters to an indent on a next line for a multiline expression. Consider the following example with zero indent and aligned strings.

Original expression

Continuation indent = 4

Continuation indent = 4
To begin

Keep indents on empty lines

Keep indents if the line is empty.

Last modified: 23 March 2020