ReSharper Web Help

Basic Code Completion completes 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.

To invoke basic code completion
  1. Place the caret at the position where you're going to type your code.
  2. Press Ctrl+Space or Alt+RightCtrl+Space or Alt+Right.

Note

The Use CamelHumps check box on the Editor page of the Options dialog box doesn't have any impact on how CamelHumps works in completion.

You can use the following examples to get an idea of how Basic Code Completion works with various code items:

Suggesting type-based variable names

Commonly used names for fields and variables are suggested depending on their type. After entering the type of a variable, press Ctrl+Space or Alt+RightCtrl+Space or Alt+Right. The look-up list displays the suggested names:
Coding_Assistance__Code_Completion__Symbol__01
If you enter a variable name prefix, ReSharper will append it to each suggested name:
Coding_Assistance__Code_Completion__Symbol__02
You can specify a prefix and/or a suffix for all new variable names in Options | Code Editing | C# | C# Naming Style. If you do that, completion items will be modified accordingly:
Coding_Assistance__Code_Completion__Symbol__06

Suggesting members of a class

Coding_Assistance__Code_Completion__Symbol__03

Suggesting visible types

Coding_Assistance__Code_Completion__Symbol__04

Suggesting c# keywords

Coding_Assistance__Code_Completion__Symbol__05

Suggesting "this" keyword for static methods in static classes

Coding_Assistance__Code_Completion__Symbol__this

Completion for enum members

Coding_Assistance__Code_Completion__Symbol__enum_members_01

Coding_Assistance__Code_Completion__Symbol__enum_members_02

Basic completion using camelhumps

Coding_Assistance__Code_Completion__Symbol__07

Completion for unresolved symbols

Early used names of data types and their members are suggested, even if they are not declared anywhere in the code and cannot be resolved.

Coding_Assistance__Code_Completion__Symbol__unresolved

Completion for argument names

Coding_Assistance__Code_Completion__Argument_names

Suggesting members of a dynamic type

Coding_Assistance__Code_Completion__Dynamic_members

Suggesting elements of file structure in build scripts

ReSharper provides code completion capabilities for MSBuild and NAnt scripts. It suggests tags, their attributes, properties, item groups and metadata names.

Coding_Assistance__Code_Completion__Symbol__build_scripts_01

ReSharper distinguishes required elements and adds special icon, so you can easily find them in the completion list. The list includes all symbols visible in the current scope, so pick an item from the list or continue typing to narrow down the scope.

Coding_Assistance__Code_Completion__Symbol__build_scripts_02

To invoke the completion list in NAnt scripts, press Ctrl+Space or Alt+RightCtrl+Space or Alt+Right or select ReSharper | Edit | Complete Symbol. In MSBuild scripts ReSharper does it for you, automatically.