GoLand
 
Get GoLand
You are viewing the documentation for an earlier version of GoLand.

Live templates

Last modified: 18 August 2023

Use live templates to insert common constructs into your code, such as loops, conditions, declarations, or print statements.

To expand a code snippet, type the corresponding template abbreviation and press Tab. Keep pressing Tab to jump from one variable in the template to the next one. Press ShiftTab to move to the previous variable.

Consider the following example of the Hello World program that is coded with Live Templates.

https://resources.jetbrains.com/help/img/idea/2023.2/go_live_templates_example.png
Gif