GoLand
 
Get GoLand

Surround code fragments

Last modified: 20 December 2024

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):