ReSharper Web Help

Import Symbol Completion (formerly known as Type Name Completion) displays all types that match a given prefix regardless of what namespace they belong to (as opposed to Symbol Completion, which only completes names of currently visible types). Import Symbol Completion automatically inserts appropriate namespace import directives to the current file if a selected type has not been imported previously. It also works after dot with extension methods and puts necessary using directives.

To invoke Import Symbol Completion
  1. Place the caret at an appropriate position to insert a type name.
  2. Specify a type name prefix.
  3. Press Ctrl+Alt+Space.


To make sure that CamelHumps works with Code Completion, clear the Case-sensitive prefix matching check box in ReSharper | Options | Environment | IntelliSense | Completion Behavior. Note that the Use CamelHumps check box in ReSharper | Options | Environment | Editor doesn't have any impact on how CamelHumps works in completion.

You can use the following examples to get an idea of how Import Symbol Completion looks like in various scenarios:

Import Symbol Completion in C#

ReSharper import symbol completion in C#

Import Symbol Completion in C# with Extension Methods

ReSharper import symbol completion with extension methods

Import Symbol Completion in C# Using CamelHumps

ReSharper import symbol completion using CamelHumps

Import Symbol Completion in VB.NET

ReSharper import symbol completion in VB.NET

Import Symbol Completion in ASP.NET

Suppose that after entering a tag prefix, you need to select a tag name, as shown below:

  • Specify not less than the initial character of expected tag name.
  • Press Ctrl+Alt+Space or select ReSharper | Edit | Import Symbol. The following menu appears:

    The list includes all types, sorted alphabetically. 
  • Pick an item from the list by scrolling it or continue typing to narrow down the choices:
  • Select the name to insert it in the code.

See Also


External Links