JetBrains Rider 2017.2 Help

ASP.NET (Razor) Namespace Imports

File | Settings | Languages and Frameworks | ASP.NET (Razor) | Namespace Imports for Windows and Linux
JetBrains Rider | Preferences | Languages and Frameworks | ASP.NET (Razor) | Namespace Imports for macOS
Ctrl+Alt+S settings


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

Depending on this option, JetBrains Rider 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, JetBrains Rider uses fully qualified type names for @inherits and @model directives. For example:
@model MyMvcApplication.Models.LocalPasswordModel
If it is cleared, JetBrains Rider 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: 17 November 2017