3

In Visual Studio 2008, in the Find Results window, how do I not show the full path of the file name where the match was found?

The thing that I'm trying to get around is where most of the window is just displaying a long path rather than the chunk of text where the match was found.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Adam Kane
  • 3,996
  • 7
  • 44
  • 53

1 Answers1

3

I don't know of any way to do it within the Visual Studio 2008 UI (I even checked 2010 - nothing). However, there is a way to make changes to this using the registry. The link below should help. It is based on Visual Studio 2005, and it does work for Visual Studio 2008 as well. Just change the registry location.

From: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Find

To: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Find

Source: Customize your Find in Files Results experience!.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Rodney S. Foley
  • 10,190
  • 12
  • 48
  • 66
  • I wonder how this could be accomplished also for the Find symbol results window – BornToCode Jun 15 '15 at 11:25
  • To sum up the link - Add a new string called `Find result format` (to the registry key mentioned) 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 – BornToCode Feb 22 '16 at 10:01