Chris Nevill
Chris Nevill

Reputation: 6161

Method of quickly changing between view and controller in visual studio - ASP.NET MVC

Is there a way of quickly switching between controllers and views in Visual Studio when developing ASP.NET MVC applications?

I find that the solution explorer has quickly become very difficult to navigate through simply due to the quantity of files that is in there.

Upvotes: 23

Views: 7403

Answers (2)

Hamdi Baligh
Hamdi Baligh

Reputation: 892

Right click on the action -> go to view

Upvotes: 7

Chris Nevill
Chris Nevill

Reputation: 6161

Answering my own question Yes there is. There appears to be a default shortcut key Ctrl-M then Ctrl-G.

This will automatically switch between the two. If you're on the controller/action it will switch to the view and vice versa.

Upvotes: 36

Related Questions