Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ASP.NET Core SwitcherNew to Visual Studio Code? Get it now.

ASP.NET Core Switcher

Adrian Wilczyński

|
213,919 installs
| (2) | Free
Quickly switch between views, controllers, pages, page models and Blazor components in ASP.NET Core using keybindings, context menu or command palette.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft