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

通过使用Visual Studio中的快捷命令>of,可以迅速定位并打开解决方案中的任何文件,这对于包含多个项目或文件夹的大规模解决方案特别有用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值