A Visual Studio Code extension that provides intelligent navigation between ASP.NET MVC controllers, views, actions, and view components, similar to the functionality found in JetBrains Rider and ReSharper.
Demo
Features
🎯 Controller Navigation
Ctrl+click to jump from controller code to views, actions, and view components.
Example: View("About") → jumps to About.cshtml
Example: ViewComponent("NavigationMenu") → jumps to NavigationMenuViewComponent
🌐 View Navigation
Ctrl+click from Razor views to controllers and actions.
Example: @Html.ActionLink("Edit", "Edit", "Product") → jumps to ProductController.Edit()
Example: @Html.Partial("~/Views/Shared/_Navigation.cshtml") → jumps to partial view
🏷️ Tag Helper & HTML Helper Support
Navigate with ASP.NET Core tag helpers and classic HTML helpers.
Example: <a asp-action="Details" asp-controller="Product"> → jumps to action
Example: <partial name="/Areas/Admin/Views/Shared/_Header.cshtml" /> → jumps to partial view
🏢 Advanced Features
Full path support: tilde (~/...) and absolute (/...) paths for views and partials
Areas & multi-project: seamless navigation across Areas and multi-project workspaces
Fallback search: finds controllers and view components in shared or non-standard files
Precise positioning: jumps directly to the exact line of class or method definitions
Usage
Simply Ctrl+click (or Cmd+click on Mac) on any MVC controller, action, or view name string in your code. The extension will:
Analyze the code context
Locate the target file (controller, view, or action)
Navigate directly to the destination
Position the cursor at the exact method or view
Compatibility
ASP.NET Core MVC (.NET Core/.NET 5+)
Razor Pages projects
ASP.NET MVC (.NET Framework)
Areas and multi-project solutions
Configuration
Setting
Default
Description
mvcNavigator.enableDebugLogging
false
Enable debug logging for troubleshooting navigation issues. Logs appear in the developer tools console.