There are some nice keyboard shortcuts in Visual Studio to help you add controllers, add views, and switch between controller actions and views when working with ASP.NET MVC Web Projects.
A quick list of these ASP.NET MVC Keyboad Shortcuts are as follows:
- - Add Controller: Ctrl-M Ctrl-C
- - Add View: Ctrl-M Ctrl-V
- - Go to Matching View or Controller Action: Ctrl-M Ctrl-G
These keyboard shortcuts are pretty simple to remember if you associate them with MVC as well as G for go.
Add Controller in ASP.NET MVC
When you use the Ctrl-M Ctrl-C shortcut in Visual Studio it displays the familiar Add Controller... dialog that you are used to when adding a controller using the mouse:

Add View in ASP.NET MVC
Similarly, when you use the Ctrl-M Ctrl-V shortcut in Visual Studio from within a controller action it displays the familiar Add View... dialog as when using the mouse, except for the fact that it now pre-populates the name of the view with the name of the action in scope:

Go to View or Controller in ASP.NET MVC
And last, using the Ctrl-M Ctrl-G keyboard shortcut in Visual Studio will switch back and forth between the controller action and controller view depending on where you are currently located in the Visual Studio IDE.
JetBrains ReSharper 5 Users
For those of you using the JetBrains Resharper 5 Beta, ReSharper has a number of shortcuts to make working with ASP.NET MVC easier as well. It has code completion, navigation between controllers and views, as well as the adding of new types and usages, etc. Good to see the Visual Studio Add-In Vendors adding some nice support just for ASP.NET MVC.
Hope this helps.

Is there some way to change the location where the controllers are created? Currently, I have all my controllers in a separate project, but Ctrl+M Ctrl+C adds the controller in the web project.
Posted by: Calle Arnesten | 01/11/2010 at 11:19 PM