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

Generate code with code completion

Last modified: 21 July 2022

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 details specific to other languages, see corresponding topics in the ReSharper by language section.