Ravikanth's Blog

Happenings around Me

Disclaimer

India MVP Blogs

Mugh blogs

My

My Favorites

My Network Places

Find in files results customization in visual studio 2005

If you spend considerable time in reformatting your find in files results, then this tip is might helpful for you. As an security analyst I always required to report a security issue with directoryname, file name , line number and code snippet. But default find in files results window will provide filename & code text and that to in single line.

To change default settings & to display results in multiple lines, you can use the following registry setting.

1. Go to HKCU\Software\Microsoft\VisualStudio\8.0\Find
2. Add a new string called Find result format with a value of Directory : $d\nFile name : $f$e\nLine #: $l\nCode:$t\r\n where

$d is directory name
$f is the filename
$e is the extension
$l is the line
$t is the text on the line

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

Full list of items you can specify in the registry can be found here.

 

Comments

Kipling said:

I think I found a bug in the way the find results window operates in Visual Studio 2005, when the result format has any line breaks. It seems that double-click to navigate operates by line number within the find results window and assumes that the format does not contain any line breaks. Thus with a three-line result format, for example, the double-clicking the second line of the first result will actually navigate to the second result. Double-clicking the first line of the second result will navigate to the fourth result...and so on. Very confusing and I didn't realize what was going on for a while.

# August 5, 2008 10:12 PM

Ralf Kunsmann said:

Kisses and Huges ;-)!!!

This was exactly what I was looking for.

Thank you so much.

# January 7, 2009 1:42 AM

Sameer said:

Appreciate this. This makes me optimistic :) Thank you.

# May 8, 2009 5:23 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)