zz - Visual Studio trick to quickly find any file in solution

来源:互联网 发布:linux 脚本中修改密码 编辑:程序博客网 时间:2024/05/18 13:25

You know that Find text boxin the toolbar of Visual Studio?  Those of us who are keyboard-inclinedprobably never use it because Ctrl+F is quicker than moving your hand to themouse.  But there is a hidden gem of a feature inside it that really makesme feel like a power user that I wanted to share.

That find box doubles as aCommand Window prompt if you just start with a '>' sign.  The featurein this that I use the most is this:

image

First jump up to that boxusing the keystroke Ctrl+/.  Now type ">of " and follow withthe start of a filename.  As fast as you can type, Visual Studio searchesyour entire solution for a file or path that starts with the characters youtype and you can quickly select that file (with the keyboard using the arrowkeys if you wish) and open it.  If you're working in a solution withseveral projects or folders, this can be a significant time saver.

For those of you unfamiliarwith the Command Window, you can think of it like an Immediate Window that youuse with the debugger, except that instead of controlling the debuggee, you'recontrolling Visual Studio.  It's like the VS macro editor, except thateverything you type takes immediate effect.  To have this convenientlyjust a Ctrl+/, > keystroke away, especially when ">of " (shortfor Open File) is such a convenient acronym to search across your entiresolution is awesome.


Resource: the original site is located here: http://blogs.msdn.com/b/andrewarnottms/archive/2008/08/02/visual-studio-trick-to-quickly-find-any-file-in-solution.aspx