ReSharper 2021.2 Help

Namespace Imports

ReSharper | Options | Code Editing | Visual Basic .NET | Namespace Imports

This page contains options that affect the way ReSharper optimizes namespace import directives in existing codebase.

ReSharper also allows you to adjust a number of settings that affect the namespace import style. You can view and change these settings on the Code Editing | Visual Basic .NET | Code Style page of ReSharper options.

Do not remove import alias directives if alias name differs from the imported type nameIf this checkbox is selected, ReSharper never removes non-trivial alias import directives from the source code, even though they are redundant. If it is cleared, ReSharper removes all redundant import directives.
Namespaces that should not be removedReSharper will not report imports of these namespaces as redundant, and will not remove them while running code cleanup.
Namespaces that should be always importedReSharper will always add imports for these namespaces while running code cleanup.
Namespaces that should never ber removed from fully qualified type namesReSharper will not report these namespaces in fully qualified type references as redundant, and will not remove them while running code cleanup.
Last modified: 13 July 2021