ReSharper 2017.1 Help

Namespace Imports

ReSharper | Options | Code Editing | Razor | Namespace Imports

By selecting or clearing the check box on this page, you can choose whether ReSharper should use fully qualified names for Razor type import directives.

Depending on this option, ReSharper uses fully qualified names during the code cleanup and/or when the related refactorings are performed that entail adding or changing namespace import directives.

ItemDescription
Use fully qualified names for @inherits and @model directives If this check box is selected, ReSharper uses fully qualified type names for @inherits and @model directives. For example:
@model MyMvcApplication.Models.LocalPasswordModel
If it is cleared, ReSharper uses non-qualified type names for these directive and adds the necessary @using directives for these types. For example:
@using MyMvcApplication.Models @model LocalPasswordModel
Last modified: 12 October 2017

See Also