Solvent - Power Toys for Visual Studio .NET

Solvent is a set of simple but effective tools for Visual Studio .NET 2003 packaged as an add-in. Why call it Solvent? All the tools work in the Solution Explorer.

Bad science puns aside, here's a list of what Solvent provides:
  • Recursive Expand/Contract: Ever notice when you click the +/- icon next to a folder (or double click on a Solution/Project file), it collapses that particular node in the Solution Explorer... but not any of the sub-nodes? If you have a really large project with a deep hierarchy, wouldn't it be nice to be able to recursively close all of the items beneath a current node so when you expand it again it doesn't re-expand everything below it? Now you can.
  • Open All SubItems: Easily open all of the subitems within a containing object (folder or project).
  • Open Containing Folder In Windows Explorer: Open the folder containing a document or project in Windows Explorer (if you select a folder, it opens that folder, not it's containing folder).
  • Command Prompt Here: Open a command prompt at an object's containing folder (if you select a folder, it opens the command prompt to that folder).


Solvent adds itself to the Tools menu and to the context menu for items in the Solution Explorer.

Tools Menu:
Solvent Tools Menu

Context Menu (On a Project):
Solvent [Project] Context Menu

It's free, so come and get it!

Download Solvent 1.1.1 (Setup - MSI)
Download Solvent 1.1.1 (Source - ZIP)

Installation Note: Be sure to shut down Visual Studio BEFORE you install! If you don't, you may see the UI elements of the add-in disappear. If you install the add-in and find that the UI has disappeared (and this goes for ANY add-in), go to Start -> Run and enter:
devenv /setup
That will reset your menus and force add-ins to rebuild. You may lose any customizations you make to the standard menu bars, though (like adding/removing buttons on bars). I'll add a check for VS.NET on install for the next release.

NOTE: Gaston Milano has a similar product for VS 2005 called CoolCommands. As Solvent does not support VS 2005, you may be interested in checking that out.

Version History:
1.0.0: First public release.
1.1.1: Updated "Command Prompt Here" to use "cd /d " rather than just "cd " to allow for opening command prompt to drives other than the one VS.NET is installed on. Also released source for download.

Print | posted @ Friday, June 25, 2004 11:26 AM

Comments on this entry:

Gravatar # Re: Solvent - Power Toys for Visual Studio .NET
by LarsBerg [MSFT] at 6/25/2004 1:15 PM

Looks like great stuff!

As a side note, though, you might want to check out the not-so-obvious numpad * and numpad - keys -- they do recursive expand and collapse out of the box on VS 2002 and 2003.
Gravatar # Re: Solvent - Power Toys for Visual Studio .NET
by Travis at 6/25/2004 1:53 PM

Hey, that's good to know... though I can get the * key to work (cool!) the numpad - only collapses the current level, not recursive. Doesn't work for the guy in the cube next to me, either (both on VS.NET 2003). Regardless, good stuff to know. Thanks!
Gravatar # Re: Solvent - Power Toys for Visual Studio .NET
by Travis at 6/28/2004 10:40 AM

I may integrate that, but then, on the machine that I have Visual Studio .NET installed on, it's a very rare occasion (never) when I don't want a VS.NET command prompt.

As such, I posted a registry hack to make it so every time cmd.exe runs, it'll automatically run the vsvars32.bat file.

Hope this helps.
Gravatar # Re: Solvent - Power Toys for Visual Studio .NET
by Matthew at 4/18/2005 4:12 AM

It's great.. But why "Command Prompt Here" always opens to folder "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE" in my VS.NET 2003"?


Help!.. Thanks in advance

Matthew
Gravatar # Re: Solvent - Power Toys for Visual Studio .NET
by Travis at 4/18/2005 11:17 AM

When you select "Command Prompt Here," Solvent executes:
cmd /k cd "folderpath"

(And, yes, it does put the quotes around the folder path so spaces are okay.)

If it opens to the IDE folder every time, it indicates one of a few things is happening.

One is that Solvent may be unable to determine the folder it's supposed to open to (like if you right-click on something in the Solution Explorer and Solvent can't figure out the folder). I doubt this, though, because if anything happens such that Solvent can't figure it out, you won't even see the option to open the command prompt (or "Open Containing Folder" or anything involving the current directory).

One is that you're using a project type I didn't test against, but I tested against C#, VB.NET, J#, C++, and MSI setup projects (as well as "solution items" that are not project-specific) so if you're not using one of those, you're outside my realm of supportability.

The last one, and the one I'm betting on, is that you have something else set to execute when you run your command prompt (a different "cmd /k" command set up in your registry, maybe?) and it's not allowing Solvent to execute the directory change as it'd like. You can look in the registry under "HKLM\SOFTWARE\Microsoft\Command Processor" for some of the keys that might be affecting you, but pending on your setup, it could be any other number of installed shell extensions, etc., that is causing you grief.

If you need additional assistance, I'm more than happy to talk to you outside this comment section. Please send me an email (see the bottom left-hand column near the copyright notice for an address) if you have further questions. Note that I don't think I can debug your problem remotely, and if you have any sort of non-standard setup, I can't really help you with that. I've got a lot of people successfully running this already and not a lot of time to spend on it (sorry). The most I can do is tell you what Solvent is doing and hope you can suss out what's up from there.
Gravatar # Re: Solvent - Power Toys for Visual Studio .NET
by bolts at 4/20/2005 5:54 PM

Matthew - Are you opening a folder on a drive other than C: ? If so, try adding a /d to the cd command:

cmd /k cd /d "folderpath"

This will tell (and allow) cd to switch to a folder on a drive other than C:.
Gravatar # Re: Solvent - Power Toys for Visual Studio .NET
by Travis at 4/21/2005 9:11 AM

Doh! You're totally right. I bet that's what it is. Let me hook that up and I'll put out a new version.
Gravatar # Re: Solvent - Power Toys for Visual Studio .NET
by Matthew at 4/21/2005 2:39 PM

Yes!! I am opening a folder on driver E..
and the command:

cmd /k cd "folderpath"

works !!
Gravatar # Re: Solvent - Power Toys for Visual Studio .NET
by Matthew at 4/21/2005 2:42 PM

Sorry.. Correction for previous message I posted:

cmd /k cd "folderpath" not work..
cmd /k cd /d "folderpath" works!.
Gravatar # VBASPCoder.com - Solvent
by www.vbaspcoder.com at 6/19/2006 12:04 PM

Your comment:

Title:
Name:
Email:
Website:
 
Italic Underline Blockquote Hyperlink
 
 
Please add 4 and 5 and type the answer here: