Live templates
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 Settings | Editor | Live Templates | Rust:

Press Ctrl0J 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 ShiftTab to move to the previous variable.

In addition to live templates, RustRover provides standard templates for surrounding code fragments with loop
, while
, if
, for
, or other wrappers, depending on the context.
Select a code fragment, call Code | Surround With from the main menu or press CtrlAlt0T, and choose the surround statement from the list:
Thanks for your feedback!