Recursively Collapse Nodes in the Solution Explorer!
The Visual Studio IDE team has heard a lot of feedback asking for a way to recursively collapse nodes in the solution explorer. For example, right out of the box, when you collapse a node in Solution Explorer, it only collapse just that node. But, what if you want to collapse all sub-nodes at the same time? Then you’ll want to install the Collapse Selection in Solution Explorer extension.
The extension can be found on the Visual Studio Gallery at http://visualstudiogallery.msdn.microsoft.com/en-us/cb0ec47d-05a4-40a7-ba39-9a2da6492f1c
Once installed, you’ll see a new button in the Solution Explorer toolbar. This button will recursively collapse the selected node or nodes (note: you can multi-select different nodes to recursively collapse at the same time.)
Now when we collapse and expand the TestApp project, we’ll see the sub-nodes also collapsed.
And the keyboard shortcut is Ctrl+Alt+Num(-)
You can read more about this extension on the VS IDE team’s blog. http://blogs.msdn.com/visualstudio/archive/2010/05/13/announcing-collapse-selection-in-solution-explorer-extension.aspx
Increase the Readability of your Find in Files results!
One of the first tips I always demo in my talks is how to edit the registry to make the Find Results Window more readable. Many thanks to Robert MacLean who has put together this extension that provides you with a dialog box for modifying the Find in Files results.
The extension can be found on the VS Gallery at http://visualstudiogallery.msdn.microsoft.com/en-us/7a412596-d9e4-462e-9eed-e00a92024130
It is also hosted on CodePlex at http://findresultstweak.codeplex.com/
Go to Tools – Find Results Tweak to open the dialog box which display an interactive preview. By default, the tool provides you with some recommended settings
which will remove the file path (the most important tweak you can make, IMO) and provide the (line, column) information where the result was found, as shown below
If you want the full list of customizations, you can check out my old blog post at http://blogs.msdn.com/saraford/archive/2008/11/24/did-you-know-you-can-customize-how-search-results-are-displayed-in-the-find-results-window-363.aspx
To get back to the default VS behavior, you can check Use default Visual Studio formatting. Or, if you are comfortable modifying the registry, you can manually remove that specific registry key as indicated in the link above.