ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Generative completion

Last modified: 11 February 2024

One of the easiest way to generate code with ReSharper is to use code completion — all you need to do is to type several characters. Code generation suggestions are included in the lists of automatic completion and basic completion.

Here are a few examples of how you can generate code with code completion.

When you select items in completion lists using keyboard, the selection will jump to the first item after the last item and vice versa. You can disable this behavior by clearing Loop selection around ends of a list on the Environment | IntelliSense | Completion Appearance page of ReSharper options Alt+R, O.

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 more information about other languages, refer to corresponding topics in the Languages and frameworks section.