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.
In Mobile JS, you can transfer from one view to another view by using App. transferPage method. To achieve this, set the page url '/controllername/viewname' (here it's given as /Home/Ajax) as the second parameter of App.
To pass data from the controller to view, either ViewData or ViewBag can be used. To pass data from one controller to another controller, TempData can be used.
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.
Right click on the action -> go to view
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With