Live templates

Last modified: 31 January 2025

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.

The following demo illustrates the usage of live templates, along with the Extract function, Extract parameter, and Extract lambda parameter refactorings: