Argh! I wish I had found this one in time for the book. A second edition, maybe? I’d hate to be known as a one-hit wonder. I’m sure there are more people who could use scholarship money.
Ever did a Find in Files and was annoyed that Visual Studio showed the entire file path, forcing you to scroll over just to see the name of the file and the search result?
Here’s what you can do, among some other tweaks. Note: These involve modifying registry settings. Please use at your own risk! Also Note: You don’t have to restart Visual Studio to pick up on your registry changes. Sweet!!!
$f is the filename
$e is the extension
$l is the line
$c is the column
$t is the text on the line
Now let’s take a look at that Find Results window again:
And here’s the full list of items you can specify in the registry
$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
If you come up with a great combination of values, please leave a comment and share with the group!