views:

1048

answers:

10

I've recently started a new job working with webdevelopment in .NET. Coming from a php and rails background i've been working mainly in Eclipse and NetBeans, along with some TextMate. I find myself missing a few great keyboard shortcuts and i can't seem to find a Visual Studio equivalent.

NetBeans has the awesome "Go To File" and so does Eclipse with this plugin. Eclipse also has the option of quick searching in the open file list with Cmd/Ctrl-E.

Is there something like this in Visual Studio? Either build in or via plugin. Or is there some other way of quickly navigating between files that's prefered?

A: 

You can press F12 (Go to definition) on an identifier and quickly navigate to its point of definition in Visual Studio.

Mehrdad Afshari
A: 

The Resharper add-in allows more advanced navigation, such as "find usages" and extending the existing "go to definition" from Visual Studio.

Gerrie Schenck
+6  A: 

A free addin called Sonic FileFinder might help (you can search for file using wildcard inside the solution).

shahkalpesh
Awesome, this looks like exactly what i want.
Effata
+1  A: 

CodeRush Express (which is free) has an indispensible search files function. I also use this trick to auto-sync the current item within Solution Explorer.

HTH, Kent

Kent Boogaart
+3  A: 

Resharper has goto file functionality. You can use CTRL+SHIFT+N (Default keys) and enter any file name, CTRL+N and enter any type name, even CTRL+SHIFT+ALT+N and enter any symbol name (allows you to search by method for example). There's also CTRL-E to search the open file list. Not to mention all the other goodness that comes with it. Highly recommended.

Leaf Garland
Resharper is being included in VS2010 from what I've been reading
csjohnst
Link: http://codebetter.com/blogs/james.kovacs/archive/2009/01/19/visual-studio-2010-visual-studio-2008-resharper.aspx
csjohnst
Looks like a nice feature set, but a bit pricey for the features i need.
Effata
I think the key-combination depends on your settings, on my box it's ctrl+shift+T. (Ctrl+T being go to type.)
svinto
+14  A: 

A quick way to open a file in VS when you have a large solution is to hit CTRL+/ (will set the focus on the Find dropdown on the toolbar), then enter something like

>of filename.ext

(you'll need the ">" because you're entering a VS command alias: of=File.OpenFile). You'll see that as you type "filename.ext" you'll get autocompletion on all files included in the solution.

Guido Domenici
That's awesome. I can't believe I didn't know about this before.So much quicker than finding stuff in the tree.
Kibbee
you made my life alot easier. It is still not like e-texteditor (windows best textmate ripoff) but we come closer and closer :).
bastijn
It's possible that it's the environment setup I chose when I first set up VS (I chose VB.NET Development, incidentally), but I didn't have this box on my toolbar. I found it under Tools / Customize / Commands / Go To Find Combo. The keyboard shortcut didn't work at first. I went to Customize / Keyboard... and choose the Visual C# 2005 mapping scheme. You could also just add Ctrl+/ as a mapping for Edit.GoToFindCombo.
Jerph
+1  A: 

A good comparison: VS File Finder vs Sonic File Finder

Gulzar
+2  A: 

In Visual Studio 2010, there is the new Navigate To-feature.

Dimitri C.
+2  A: 

It is most useful if you remap so that:

Tools.GoToCommandLine => Ctrl+/ [slash]

Edit.GoToFindCombo => Ctrl+Shift+/ [slash]

More info here: http://goo.gl/TupW

Proto
+2  A: 

Quick Open File for Visual Studio (freeware) is a very handy tool for opening files in Visual Studio. At the time of this writing it is supported on Visual Studio 2008 and 2010.

I've actually been using this one for a while and it's very snappy. Only minus is that the indication of where a file lies is not so good. (ie if i have a bunch of index.aspx in different directories)
Effata