Did you know… How to search from the command line? – #083

Almost all Visual Studio commands can be run via the command line (scope willing).  Check out running the find command via the command line (or the Ctrl+/ window – edit.gotocommandline).

FindCommandWindow

Additional Command Line options:

Edit.Find /options – Shows which options are currently set

Edit.Find /reset – clears all options

Some examples:

Edit.Find MainForm /case / proc (Quick Find, match case, in current procedure – <block>)

Edit.Find MainForm /o /m /u /h /l (Quick Find, open documents, match whole word, mark matches, search up, search hidden)

Edit.Replace /doc /all (Quick Replace, replace all, current document)

Edit.FindInFiles btnCancel /lookin:"c:\users\saraf\documents\visual studio 2008\projects\vb samples" /ext:*.vb /text2  (Find In Files, look in the VB Samples folder with files of .vb extension, and show results in Find Results 2 Window)

Technorati tags: VS2005Tip, VS2008Tip

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>