Live templates

Last modified: 20 December 2024

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 . Keep pressing to jump from one variable in the template to the next one. Press to move to the previous variable.

https://resources.jetbrains.com/help/img/idea/2024.3/ps_LiveTemplatesExample.png
Gif