ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Refactor This

Last modified: 21 July 2022

ReSharper | Refactor | Refactor This…

Ctrl+Shift+R (ReSharper_RefactorThis)

This command is a shortcut to all ReSharper's refactorings available in the current context. You can invoke this command from almost any place:

  • On the declaration or usage of a symbol in the editor.

  • On the selection in the editor.

  • On the current item or selection in the Solution Explorer , Class View, or Object Browser.

  • On the current item or selection in the File Structure window, type dependency diagram, or another ReSharper tool window.

This feature is supported in the following languages and technologies:

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by language section.