← Back to Shortcut Collections
RustRover

RustRover

JetBrains' dedicated IDE for Rust, making memory-safe and high-performance Rust development even more comfortable

Shortcuts for continuously improving Rust code quality with safe refactoring features like renaming, function extraction, and variable extraction

Ctrl+Alt+Shift+T
Invoke refactoring
Refactor the element under the caret, for example, safe delete, copy, move, rename, and so on.
💡 Hint: Refactoring
🎯 Select appropriate operations from safe refactoring menu to improve code quality
Ctrl+W
Extend selection
Increase the scope of selection according to specific code constructs.
💡 Hint: Widen selection
🎯 Extend selection by logical units to precisely specify refactoring targets
Ctrl+Shift+W
Shrink selection
Decrease the scope of selection according to specific code constructs.
💡 Hint: Shift+W to shrink
🎯 Shrink selection to enable refactoring at finer granularities
Ctrl+/
Add/remove line comment
Comment out or uncomment a line of code.
💡 Hint: Slash (/) for comment
🎯 Quickly test temporary changes by commenting out code
Ctrl+Shift+/
Add/remove block comment
Comment out or uncomment a block of code.
💡 Hint: Shift+slash for block
🎯 Comment out multi-line code blocks to safely implement large-scale changes