ReSharper for Visual Studio Code Help

Refactor code

ReSharper provides a lot of different refactoring actions for your C# code. Most of the local refactorings, also called context actions, provide quick transformations in the scope of the current line, statement, or method. In addition to that, there are several refactorings that work in a broader context from the current type to the entire solution.

To list all refactorings available for the current caret position and selection, if any, press ⌥ ⏎. Press or to pick the desired action, and then press to apply it. Alternatively, you can right-click and choose Refactor from the context menu.

ReSharper for Visual Studio Code: Local code transformations

In this section:

18 February 2026