[Tip: VS find combo box]Fun with the Visual Studio Find Combo Box
2010-05-01 22:37
597 查看
[From MSDN Blog:http://blogs.msdn.com/shawnfa/archive/2004/02/27/81338.aspx]
It's interesting to note all the power of the find combo box in the Visual Studio command bar (shortcut is: ctrl + /). It's easily one of the more useful controls I've ever used, yet it just sits there all quiet and unassuming. I've run into a lot of people who know one of two tricks that can be done in this box, so I thought I'd summarize them here.
Of course there's the basic find functionality:
Find a string -- type the string and press Enter
Find the next occurance of the string -- press Enter again
But then things get a little more interesting:
Goto a line -- type the line number and press Ctrl + G
Goto a file (either in your project or on the INCLUDE path) -- type the name of the file and press Ctrl + Shift + G
Set a breakpoint on a function -- type the name of the function and press F9
Get help -- type the keyword you want help on and press F1
And my personal favorite:
Mini command window -- If you type > as the first character in the combo box, it will turn into a mini command window, complete with Intellisense! To get the list of alias commands, you can use > alias to get the list.
Aliases provide a means for entering a command into the Find/Commandbox or Commandwindow by shortening the text needed to execute the command. For example, instead of entering
Common to use:
Open file: > of/open
It's interesting to note all the power of the find combo box in the Visual Studio command bar (shortcut is: ctrl + /). It's easily one of the more useful controls I've ever used, yet it just sits there all quiet and unassuming. I've run into a lot of people who know one of two tricks that can be done in this box, so I thought I'd summarize them here.
Of course there's the basic find functionality:
Find a string -- type the string and press Enter
Find the next occurance of the string -- press Enter again
But then things get a little more interesting:
Goto a line -- type the line number and press Ctrl + G
Goto a file (either in your project or on the INCLUDE path) -- type the name of the file and press Ctrl + Shift + G
Set a breakpoint on a function -- type the name of the function and press F9
Get help -- type the keyword you want help on and press F1
And my personal favorite:
Mini command window -- If you type > as the first character in the combo box, it will turn into a mini command window, complete with Intellisense! To get the list of alias commands, you can use > alias to get the list.
Aliases provide a means for entering a command into the Find/Commandbox or Commandwindow by shortening the text needed to execute the command. For example, instead of entering
>File.OpenFileto display the Open File dialog box, you can use the pre-defined alias
>of. To see MSDN alias list, visit here.
Common to use:
Open file: > of/open
相关文章推荐
- VS2013 打开项目时提示This project is incompatible with the current edition Visual Studio.
- DDKBUILD - Integrating the Windows DDK with Visual Studio .Net
- TF80012: The document cannot be opened because there is a problem with the installation of the Microsoft Visual Studio v
- Migrating from VS 2005 to VS 2008 with Microsoft.VisualStudio.Shell references (译)
- Build a .NET Application on the Oracle Database with Microsoft Visual Studio 2010
- vs2013错误,错误 1 error MSB8020: The build tools for Visual Studio 2012
- How to change the default browser to debug with in Visual Studio 2008?
- (OK) Spend Leap Day with TACO + VS Code (visual studio code) - Cordova
- This project is incompatible with the current version of Visual Studio
- Translation:How to build Tesseract 3.03 with Visual Studio 2013 (翻译《VS2013 建立tesseract3.03工程》)
- 使用VS进行工作流开发系列博客1-"So You Want to Develop Custom Workflows in Visual Studio..." - The Blog Series
- Control cannot be created because Visual Studio cannot find the control's type in the control assembly 问题的解决
- Safe! Repel Attacks on Your Code with the Visual Studio 2005 Safe C and C++ Libraries
- 将kinect for windows SDK v2.0中代码在VS2015中打开运行报错 The build tools for Visual Studio 2012 (Platform Tools
- OPD.NET Developer's Guide: Oracle Database 10g Developement with Visual Studio 2005 and the Oracle D
- The Complete Reference to Professional SOA with Visual Studio 2005 (C# & VB 2005) .NET 3.0
- Migrating from VS 2005 to VS 2008 with Microsoft.VisualStudio.Shell references (译)
- vs .net 2005 打开VSS项目时出现:"could not find the visual sourcesafe internet web service connection"的解决方案
- Visual Studio Troubleshooting Extensions with the Activity Log
- can't use QT_VS_Addin 1.1.9 with Visual Studio 2010