Use live templates to insert common constructs into your code, such as loops, conditions, various declarations, or print statements. You can explore and customize the list of live templates in:
Insert a live template
Press Control+J to check which templates are available in the current context. If you already know the abbreviation, just start typing it, choose from the list of suggestions, and press Tab. Keep pressing Tab to jump from one variable in the template to the next one. Press Shift+Tab to move to the previous variable.
In addition to live templates, RustRover provides standard templates for surrounding code fragments with
for, or other wrappers, depending on the context.
Select a code fragment, callfrom the main menu or press Control+Alt+T, and choose the surround statement from the list: