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.

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

$l      line
$c      col
$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

\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.