Reputation: 131172
I spent a fair bit of time developing Rails apps in VIM with an amazing plugin called Rails.Vim
Whenever I wanted to navigate to a Model I would hit:
esc :Rmodel topic[enter] to find the topic model.
In this mode tab completion works so I could hit :Rmo[tab] to[tab][enter]
(for an added bonus :RSmodel topic[enter] would split the window and open the model in the split
Or :RTmodel topic[enter] would open it in a new tab)
Similar shortcuts exist for navigation to javascript, css, views, helpers, controllers and so on.
Is there a similar plugin for Visual Studio 2010 that would allow me to approximate this kind of behavior, allowing me to navigate my MVC project with keyboard shortcuts only?
Upvotes: 5
Views: 829
Reputation: 53191
You should try the combination Ctrl + ,. It opens a search box that lets you search for classes, files, methods, etc.
Upvotes: 0
Reputation: 40202
To navigate to a method/class/type definition that is visible on your current screen (I.E. the method/class/type is properly being used in a piece of code you're viewing), place your cursor on it and hit F12.
To navigate to a class/method/property/field etc. anywhere in your project, press CTRL + , then start typing to search for it. The results will auto filter.
The CTRL + , search uses the same new search standards as IntelliSense in 2010. So typing MSA
in the search will return MailServerAddress
etc.
I'm not sure there exists anything beyond the normal search functionality for CSS/JS/Views.
CTRL + , Does indeed filter by file names. So searching for views by file name works.
Upvotes: 4
Reputation: 6146
You can also customize the shortcut keys to navigate from the controller to the views and back http://ebersys.blogspot.com/2011/05/visual-studio-aspnet-mvc-flip-quickly.html
Upvotes: 1