You can create customs snippets. For instance, when you're typing
for, JetBrains is showing you some pre-written code: that's a snippet.
Settings > Editor > Live template.
- Create a new
- write a name, for example
- write a description, shown when suggesting snippets
- write some code if this snippet is selected
You can create variables using
$name$ then go to
edit variables and tune how this variable should act.