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

Automatic Completion

Last modified: 08 March 2021

ReSharper's automatic completion suggests names of classes, methods, variables, keywords, and any other symbols that are available within the current visibility scope including extension methods that were previously imported. Many other context-specific suggestions, like live templates, code generation suggestions, unit test categories are also available in the completion list.
By default, suggestions of automatic completion also include items from Smart Completion and Import Symbol Completion. If you want to change the default behavior, use the corresponding controls on the Environment | IntelliSense | Completion Behavior page of ReSharper options(Alt+R, O). The list of suggestions is the same as that of Basic Completion.

The suggestion list of the automatic completion appears as soon as you start typing. As you type, the list narrows down to show only items that match what you have entered.

By default, automatic completion support CamelHumps, that is you can type the initial letters of a compound name parts and the name will appear in the list of suggestions.
If necessary, you can disable CamelHumps by clearing the Match middle of identifiers checkbox on the Environment | IntelliSense | Completion Behavior page of ReSharper options.

When building the list of completion suggestions, ReSharper also tries to figure out which suggestion you will likely choose, and preselects it in the list. With the default settings, ReSharper pre-selects the best match allowing you to insert it you press Enter, Space, as well as dot, open parenthesis, open bracket, semicolon, and so on (depending on the context) You change this default behavior as described below in this topic. You can also specify the characters on which the selected suggestion is not inserted. To do so, use the corresponding controls on the Environment | IntelliSense | Completion Characters page of ReSharper options.