Visual Studio find window formatting

1. Go to HKCU\Software\Microsoft\VisualStudio\8.0\Find
2. Add a new string value called “Find result format” with a value of $f$e($l,$c):$t\r\n where

$f is the filename
$e is the extension
$l is the line
$c is the column
$t is the text on the line

Note:  You don’t have to restart Visual Studio to pick up on your registry changes.

Files
$p      path
$f      filename
$v      drive/unc share
$d      dir
$n      name
$e      .ext

Location
$l      line
$c      col
$x      end col if on first line, else end of first line
$L      span end line
$C      span end col

Text
$0      matched text
$t      text of first line
$s      summary of hit
$T      text of spanned lines

Char
\n      newline
\s      space
\t      tab
\\      slash
\$      $

The one I personally use is this: “$f$e($l,$c)\s-$s\n”

Leave a Reply

You must be logged in to post a comment.