Context actions

Last modified: 07 April 2022

Alt+Enter

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.

JetBrains Rider provides hundreds of context actions in all supported languages. You can find the full list in the context actions reference.