ReSharper 2020.3 Help

Refactor This

ReSharper | Refactor | Refactor This…
Control+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.

Check out and apply contextually available refactorings

  1. Place the caret at a symbol in the editor or select the symbol in a tool window.

  2. Press Control+Shift+R or choose ReSharper | Refactor | Refactor This… from the main menu. Alternatively, you can press Control+Shift+A, start typing the command name in the popup, and then choose it there.

  3. The Refactor This list appears.

    Refactor This list

  4. Choose an item from the list and click it or press Enter.

This feature is supported in the following languages and technologies:

Language: C#Language: VB.NETLanguage: C++Language: HTMLLanguage: ASP.NETLanguage: RazorLanguage: JavaScriptLanguage: TypeScriptLanguage: CSSLanguage: XMLLanguage: XAMLLanguage: ResxLanguage: Build ScriptsLanguage: ProtobufLanguage: JSON
Feature is available in C#Feature is available in Visual Basic .NETFeature is available in C++Feature is available in HTMLFeature is available in ASP.NETFeature is available in RazorFeature is available in JavaScriptFeature is available in TypeScriptFeature is available in CSSFeature is available in XMLFeature is available in XAMLFeature is available in Resource filesFeature is available in build script filesFeature is available in Protobuf Feature is not available in JSON

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.

Last modified: 09 September 2020