Welcome to MSDN Blogs Sign in | Join | Help

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
Tip #67: Did you know the list of ASP.Net MVC shortcuts?

Add Controller (Ctrl-M Ctrl-C)

Add Controller is a simple dialog box that lets you quickly add controllers to ASP.Net MVC Applications. Right-Click the 'Controllers' folder or simply press Ctrl-M Ctrl-C to invoke this dialog.

AddControllerDialog

Add View (Ctrl-M Ctrl-V)

The Add View is the easiest way to add views to an ASP.Net MVC Application. Right-Click from within an Action Method or in solution explorer, or simply press Ctrl-M Ctrl-V to invoke the dialog. The shortcut is especially effective when invoked inside an action method.

AddViewDialog

Go to View / Go to Controller (Ctrl-M Ctrl-G)

Once you have added controllers with Action Methods and corresponding views, navigate between them with the 'Go To View...' and ‘Go to Controller…’context menu items. These menu items can be invoked in an Action Method of a controller or in the markup of an ASP.Net MVC View Page. Anywhere a menu item is visible you can instead navigate within your ASP.Net MVC Application by simply pressing (Ctrl-M Ctrl-G) to move to the corresponding view or controller.

GoToViewMenu

 

Hope this makes ASP.Net MVC development easier!

Joe Cartano | Visual Web Developer

 

Posted: Sunday, May 31, 2009 10:28 AM by WebDevTools

Comments

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

# May 31, 2009 4:41 PM

progg.ru said:

Thank you for submitting this cool story - Trackback from progg.ru

# May 31, 2009 11:24 PM

rekna said:

Go To View does not seem to work, when the ActionName attribute is used and the method name is different from the view name...

# June 1, 2009 8:12 AM

WebDevTools said:

@Renka

You are right, this is a limitation of MVC 1.0. We are considering improving the behavior in a future release.

Joe Cartano

# June 1, 2009 2:16 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker