GoLand
 
Get GoLand
Because GoLand 2025.1 is still in development, this documentation may not be entirely accurate and is subject to change.

Surround code fragments

Last modified: 24 January 2025

GoLand provides standard templates for surrounding code fragments with various constructs based on the language of the source code. This includes if...else conditional statements, for loops, folding regions, and other constructs.

You can edit code templates that are used in the surround statements. In the Settings dialog (CtrlAlt0S) , go to Editor | File and Code Templates.

Code template settings

This feature applies to the following languages (contexts):