New CoolCommands for Visual Studio 2005
After I released coolcommands I received a lot of suggestions about adding others commands. I received bug reports too :(. So I developed some new commands and fixed some bugs.
My favorite new cool command is the Resolve Project References.
But Andres Aguiar insists that the coolest is the Copy and Paste of references ;)
So here a brief explanation about the new commands:
- Resolve Project Reference
A lot of times I load only one project without the original solution of it. So all project references are unresolved. So that we should load each project in the solution in order to build the project. Well, this command solve this problem, right click in the project and Resolve Project References load all the project references recursively
- Copy / Paste of References
Do you need adding the same references that you already add to other project? Well just select the references in the solution explorer, Copy references, select the second project and Paste references !! It works with project references too and over different VS instances.
- Open File
In C++ files if you have #include "test.h" you have an "Open Document" command. It search in some path for this file and open it.
Well the idea is the same but it works with the path that you have over the cursor or over your selection. Suppose you write something like:
if (File.Exists("mysetup.config"))
if you select the path , right click and Open File, the command will prompt you the first time for the file and store the directory path so that the next time you try to open a file it will search in this path for your files.
Another use case is if you are using a template engine in order to generate files you can write in the generated file a reference to the name of the template used so that you can use the open file command to go from the generated file to the template file.
- Locate in Solution Explorer
If you have the Track Active Item in Solution Explorer disabled but sometimes do you want to find the item in the solution explorer this command is for you.
- Bug Fix: Collapse all projects is enabled in the solution root now.
There is a new version here