Wednesday, July 24, 2013

The best way to find all matches for a string of text in Visual Studio 2012...

...is to press Ctrl-F (find) or Ctrl-H (find and replace) while at least one file is open to bring up a dialog box like so:

then...

  1. type something to find in the topmost fill-in-the-blank field
  2. click the small down arrow at the right of the larger rightwards-pointing arrow
  3. pick "Find All" from the small menu which appears

You probably will want to tweak some of the other settings in the dialog box too such as whether or not you search the Entire Solution or just the immediate file. The results will come back in a list wherein you may click any one result to bring up the file associated in the IDE.

No comments:

Post a Comment