Completing paired characters
GoLand can automatically add closing braces and other paired elements.
- In the Settings/Preferences dialog (Ctrl+Alt+S)
, click General under Editor, and then Smart Keys. The Smart Keys page opens.
Select the Insert pair } checkbox in the Enter group. This enables adding closing braces when you press Enter.
-
Configure automatic insertion of paired elements by selecting the following check boxes:
- Insert pair bracket
- Insert pair quote
- Auto-close tag on typing '</'
Click OK to apply changes.
The indentation level is defined in the Code Style settings.
Last modified: 17 May 2019