/AspNetCoreSwitcher

Visual Studio Code extension (https://marketplace.visualstudio.com/items?itemName=adrianwilczynski.asp-net-core-switcher). Quickly switch between views, controllers, pages, page models and components in ASP.NET Core using keybindings, context menu or command palette.

Primary LanguageTypeScriptMIT LicenseMIT

ASP.NET Core Switcher

Razor Pages

Switch between Page and it's PageModel using:

  • Keybindings: alt + o
  • Editor context menu: Go to Page, Go to PageModel
  • Command palette: Go to Page, Go to PageModel

Razor Pages Example

MVC

Switch between View and Controller using:

  • Keybindings: alt + o (or alt + i for backwards compatibility)
  • Editor context menu: Go to Controller, Go to View
  • Command palette: Go to Controller, Go to View

MVC Switch Example

Create View for Action using:

  • Keybindings: alt + p
  • Editor context menu: Add View...
  • Command palette: Add View...

MVC Add View Example

Blazor

Switch between Component (.razor) and its CodeBehind (.razor.cs) using:

  • Keybindings: alt + o
  • Editor context menu: Go to Component, Go to CodeBehind
  • Command palette: Go to Component, Go to CodeBehind