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.
- Place the caret at an appropriate position to insert a type name.
- Specify a type name prefix.
- 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#
- Import Symbol Completion in C# with extension methods
- Import Symbol Completion in C# using CamelHumps