ReSharper(Visual Studio)
The ultimate productivity tool for Visual Studio, elevating C# code refactoring and navigation to the next level
Professional refactoring shortcuts that leverage safe and powerful refactoring features to continuously improve code quality
Ctrl+Shift+R
Refactor This
Shows the Refactor This menu.
💡 Hint: Refactor
🎯 Used for displaying all available refactoring options for code improvement and selecting the optimal method
Ctrl+R → R
Rename
Renames a symbol.
💡 Hint: Rename
🎯 Essential for safely changing variable, method, and class names while automatically updating all references
Ctrl+R → M
Extract Method
Extracts selected code into a new method.
💡 Hint: Method
🎯 Important for breaking down complex methods into smaller units to improve code readability and reusability
Ctrl+R → V
Introduce Variable
Introduces a variable for the selected expression.
💡 Hint: Variable
🎯 Utilized for extracting complex expressions into variables to improve code understandability and debuggability
Ctrl+R → F
Introduce Field
Introduces a field for the selected expression.
💡 Hint: Field
🎯 Used for promoting local variables to class fields to properly manage data sharing scope
Ctrl+R → P
Introduce Parameter
Introduces a parameter for the selected expression.
💡 Hint: Parameter
🎯 Effective for parameterizing hard-coded values to improve method versatility and flexibility
Ctrl+R → I
Inline
Inlines a method or variable.
💡 Hint: Inline
🎯 Convenient for removing unnecessary intermediate variables or methods to simplify code
Ctrl+R → S
Change Signature
Changes the signature of a method.
💡 Hint: Signature
🎯 Important for adding, removing, or changing method parameters while automatically updating all call sites
Ctrl+R → D
Safe Delete
Safely deletes code that is not used. (Also Alt+Del)
💡 Hint: Delete
🎯 Utilized for safely deleting unused code to keep the codebase clean
Ctrl+E → C
Code Cleanup
Runs code cleanup.
💡 Hint: Cleanup
🎯 Used for automatically organizing code according to coding conventions to maintain consistent style