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

Context actions

Last modified: 21 July 2022

Alt+Enter (ReSharper_AltEnter)

Context actions are code transformations helpers available right in the editor. In contrast to quick-fixes, context actions do not aim to resolve a problem or improve your code, instead, they allow you to quickly introduce minor changes like changing access modifiers, generating code that checks for null, convert 'foreach' to 'for', etc.

ReSharper provides hundreds of context actions in all supported languages. You can find the full list in the Code Editing | Context Actions page of the ReSharper options and in the context actions reference.

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.