The "Open containing folder" and the "Copy as reference" items in the context menu are essential. Also the "Format On Save" option makes live so easy. Any untidy code and hit CNTRL + S and the entire page formats correctly.
Like a lot of extensions are getting these days, this one is bloated. More crap than will get used and a lot of stuff that is covered by other, more popular and useful extensions. Not to mention the fact that if you have any kind of custom color scheme in place this extension will break a lot of it. In my opinion, there are better extensions out there that won't cause the lag and havoc that this one is capable of.
Nice package! I really like the Remove and Sort Usings command as well as the copy and paste references. It would be great if there was a command to Remove Unused References. The only way I have found to do this is to remove a reference one at a time and try to compile then add it back if the compile fails. The copy reference feature in PowerCommands definitely makes this task easier though. I did see one problem with Removing Usings where some get removed when they are wrapped in an #if DEBUG statement and you use the feature in Release mode.
Is there any chance that the option to 'sort usings *without* removing' could be added to the tool(when the user hits save)?
The problem with 'remove and sort usings' is that the System.Linq namespace gets removed on new classes and this is almost always needed eventually. Its frustrating if you're not aware of it trying to work out why linq isn't working. Even better, if we could have a 'safe list' of usings not to remove, that'd be great.
This would then be a great companion tool for stylecop.
ps: another cool refactor would be to sort attributes on classes/methods/properties on save.
Thanks for this extension but i want a feature that will help all of developers very much.
Our solutions is very big, contains 18 projects and thousands of classes. So finding a specific class is very hard. If there is a quick search and find dialog it will be very helpful. It can be opened by keyboard shortcut. After you started to write some chars it can suggest possible files to you. When you find your file, you can open or localate at Solution Explorer.
I hope you understand me and add this feature.
bahadirarslan - A trick I use in visual studio to find class files in large projects is type ">of ClassName" in the VS find search bar (CTRL+/). Typing >of will create intellisense and I believe list all classes starting with or containing your search word. Hope this helps!
There seems to be a minor bug in the "Copy Reference" command related to EnvDTE100. When I try to copy that reference I see an error message that reads, "Input string was not in a correct format."
Organize using requires two clicks.
I would ask for this feature to be customizable so that "Sort usings and remove unused" in the main context menu.
I would also like this feature to execute when closing/opening a file.
Thanks
This is an awesome tool and I don;t use VS2010 without it. But now I am starting to use VS11 beta and I was dissapointed to find that while they did integrate some of PowerCommands into VS11, not all. It is missing some key things I love (like the close button on the far right of the tab well).
So I see PowerCommands says it supports VS11. I am wondering if there is anything I should be aware of? Are there any gottchas or is this a straightforward thing? I ask becuase VS11 does have some of what PowerCommands does built in, so I am concerned they will conflict.
Anyone want to comment?
OK, my bad. I was confusing PowerCommands with the Productivity Power Tools. Still can anyone shed any light on what parts of PowerCommands are built into VS11, and whether any conflicts?
I have turned on the "Format document on save" and "Remove and Sort Usings on save" options, but they are not running when I click the Save button. Has anyone else seen this?
I am on Visual Studio 2010 SP1 and also have the Productivity Power Tools and Team Foundation Server Power Tools installed if that is any help.
Any help would be much appreciated.
Thanks!