[Tip: VS find combo box]Fun with the Visual Studio Find Combo Box

來源:互聯網
上載者:User

[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 >File.OpenFile to 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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.