Keyboard: CTRL + SHIFT + F
Menu: Edit -> Find and Replace -> Find in Files
You can customize your Find in Files results to show what you want to see and how you want to see it.
Example: You don’t want to view the entire file path shown in the Find Results tool window.
So instead of this:
You want this:
DANGER: This involves hacking the Registry so use this tip at your own risk!
- Open up RegEdit
- Go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Find
- Add a new string called Find result format with a value of $f$e($l,$c):$t\r\n
- Hop into Visual Studio and run a Find in Files search (NOTE: You do not need to restart VS to see the changes made in the Registry, which is great for testing different string combos)
Here are valid values you can use in the string:
$v drive/unc share
$x end col if on first line, else end of first line
$L span end line
$C span end col
$0 matched text
$t text of first line
$s summary of hit
$T text of spanned lines