CodeMaid

Free

CodeMaid is an open source Visual Studio extension to cleanup, dig through and simplify our C#, C++, F#, VB, XAML, XML, ASP, HTML, CSS and JavaScript coding.

(92) Review
Visual Studio
2012, 2010
Download (185,194)
4/7/2013
0.6.0
View
E-mail Twitter del.icio.us Digg Facebook
Add To Favorites
Description
Reviews (92)
Q and A (66)
Sign in to Write a Review
Sort By:

by rammi | August 02 2012

Seems like pretty good extension, but for me it worked only twice, after that I'm still getting this error:

(in VS2010 prof.)

CodeMaid stopped cleaning 'FileName.cs': System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at EnvDTE80.DTE2.ExecuteCommand(String CommandName, String CommandArgs)
at

Later I realized, that it's on file which is not included in solution.

But there is also another bug. when using usings inside namespaces, it truncate their names.

e.g.: using System.Collections.Generic;
becomes: using System.Collections.Gene

in source starting with:
namespace My.Services.Business
{
using System.Activities;
using My.Model.MyStore;
using My.DataContracts.MyStore.Base;
using System.Collections.Generic;

Steve Cadwallader August 05 2012
| Edit |
Delete

There are a few open bugs that cropped up while I was on vacation. Using statements defined inside namespaces is one that has been reported and is in progress: https://bitbucket.org/s_cadwallader/codemaid/issue/117/using-statements-corrupted-if-within

Sorry for the troubles, I'll be working on them this weekend.

Update: The fix for this is now in beta testing. If you'd like to try it out please download the latest release directly from BitBucket. Thanks for reporting the bug!

by Kirillenseer | August 01 2012

One major flaw: it kills refactoring for me. After installing CodeMaid, refactoring hangs VS to the death, after removing CodeMaid, it works just well again.

Steve Cadwallader August 05 2012
| Edit |
Delete

Sorry to hear of the trouble you are having. There is a known issue in progress (see https://bitbucket.org/s_cadwallader/codemaid/issue/119/codemaid-hangs-when-renaming-something-and) that if you have enabled both "Automatically run cleanup on file save" and "Run reorganize at start of cleanup" and use a native VS refactoring operation Visual Studio will hang. It should be fixed soon and the temporary work-around is to disable either one of those two options. Hope it helps.

Update: The fix for this is now in beta testing. If you'd like to try it out please download the latest release directly from BitBucket. Thanks for reporting the bug!

by Dan Morey | July 27 2012

Top extension. Automatically tiding up after I click save is great, and I love the options on what gets modified (especially being able to re-add using statements that I always want). I'll being paying close attention to any updates that come from this extension.

Steve Cadwallader July 31 2012
| Edit |
Delete

Thanks Dan, glad to hear it. :) Feel free to join in on the discussions on what comes next on the Trello board here https://trello.com/board/future/4f6e6dcc255ed1e9085b8665

by NarayanaR | July 21 2012

by Cyclops Software | July 16 2012

A fantastic product! I would like to suggest additional functions which would be useful.

Sort:
Select a block of code and sort it alphabetically. Select a switch statement and sort the case statements alphabetically, except default: which must be placed at the end.

Switch:
Select a switch statement and prompt for additional missing case statements, then insert the selected missing ones or all missing ones.

Steve Cadwallader July 17 2012
| Edit |
Delete

Thanks Justin of Cyclops - I'm glad you like it. :) I've added your sorting suggestion to the Trello backlog here (https://trello.com/c/bb6vbdbp) for voting/additional comments. The insert missing case statements option is a bit outside CodeMaid's current functionality set so I don't see it anywhere in the near future - but it is a good idea and you may find it in other products.

by doobery | July 13 2012

by Craig Treasure | July 11 2012

Great addon. Working great on VS2010, but CodeMaid Spade is causing crashes on VS2012.
-Update: Fixed the crashes so far.

by Steve B_ | July 09 2012

Efficient, simple and lightweight.

Good extension.

by NunoAgapito | July 08 2012

I generally hate extensions, they just make Visual Studio get slower and slower each time you install a new one but CodeMaid....

I cant imagine my life without her!!

Steve Cadwallader July 08 2012
| Edit |
Delete

Thanks Nuno. :)

by Titatuh | June 29 2012

Very usefull tool

by msp.netdev | June 22 2012

by Wray Smallwood | June 15 2012

This is my number one extension and I am writing a review to recommend it to the rest of my organization (200 developers).

If you want a suggestion on what might be cool to add, here is one thing I used to have, that I miss. SlickEdit for VS was discontinued after VS 2008. It had a reformat for comments that would wrap XML comments at a given column length. There is nothing more code maid tedious than having to reformat modified XML comments. This one was smart in that it formatted in in paragraphs and left line spaces in it alone. It would also format selected sections so that part of it like code examples could be left alone.

Thanks for a great tool

Steve Cadwallader June 15 2012
| Edit |
Delete

Thanks for the great review Wray, I'm pleased to hear how it is helping out. :)

I've added your suggestion to the CodeMaid Trello board here: https://trello.com/c/zJI5VSvL for voting and additional commenting.

by AngelGCM | June 14 2012

by Mr. Wharty | June 08 2012

Thanks for uploading this great little add-in

by Mr. Javaman II | May 24 2012

Now that I've been using this for a few months, I can say I absolutely love this software! Thank you so much for providing it.

by The Thinker | May 19 2012

Thanks for the code! Will be helpful!

by ShaktiSwarup | May 18 2012

I love IT!!
Thank you for making such an awesome tool!!!

Steve Cadwallader May 19 2012
| Edit |
Delete

You are more than welcome, very glad to hear you're enjoying it. :)

by Donovan Kliegg | May 03 2012

Totally love it. My goal in life is to write as much code as possible with as few key strokes as possible. {codemaid} is an important collaborator towards that goal. I should send her flowers.

Steve Cadwallader May 05 2012
| Edit |
Delete

Haha, that's awesome - thanks. :)

by Rodion.Sychev | April 12 2012

Update to 0.4.2 from 0.4.1 kept failing therefore I had to uninstall the old version and install the new one afterwords. Kinda bummer but not a huge deal since the product itself is great.

Steve Cadwallader April 13 2012
| Edit |
Delete

Thanks for the great review despite the installer troubles. New and improved pure-VSIX installer will be coming soon as I fork off the older VS editions.

by ElGrillo | April 08 2012

41 - 60 of 92 Items   
Sign in to Start a Discussion


  • Customize font size
    5 Posts | Last Post June 04, 2013
    • Hi Steve,
      Thanks for the great addin!
      Could you add a way to customize font size for Spade window?
    • You're welcome - glad you like it!
      
      Spade supports zooming - you can hold down the Ctrl-key and use the mouse wheel to zoom-in or zoom-out. :)  Holding down the Ctrl-key and clicking the middle button will reset the zoom to 100%.
    • True that! That was what I tried at first.
      Turns out reducing zoom level messes up font rendering, give it a try, or I can send you a screenshot if you like.
    • Sure if you would like to send a screenshot that would be good (codemaid on gmail).  Since it is a full window scale transform vs. a font size change the appearance may not remain as crisp depending on the font.
    • Sent!
  • trailing spaces are not getting removed in VS2012
    2 Posts | Last Post May 02, 2013
    • Hi,
      
      I am using VS 2012 Premium update 2, with python tools for visual studio. When I save the file, the trailing spaces at the end of lines are not getting removed, even though "Remove end of line whitespace" option is checked.
      
      Is there a fix?
      
      thanks!
    • Which kind of file (.html, .js, .xml, etc.) is not removing end of line whitespace?  Are other CodeMaid cleanup operations running successfully on that file?
  • Sort base class and interfaces
    3 Posts | Last Post April 30, 2013
    • Wouldn't it be useful to sort base class and interface names at a class definition to some definitive order? Like base class first, then all interfaces in alphabetical order. Similar to sorting all using statements (which have their own special sorting as well). I usually don't have too many interfaces in my code, what do others think about it?
    • Nobody here? Strange...
    • I didn't have a strong opinion on this one which is why I haven't chimed in.  I turned this concept into a Trello card for you to see if you get any more responses over there: https://trello.com/c/3GqHdVqW
      
  • Seems like spade doesn't work with XAML
    2 Posts | Last Post March 10, 2013
    • It seems like spade doesn't work with XAML
      May be extension conflict?
      Did you test spade from last version to work with XAML?
    • Spade does not have support for XAML files yet.  It currently supports C# and C++.  I have created a card on Trello here: https://trello.com/c/9UdT5NIW
      
      Feel free to vote up the card, and/or fork the code on BitBucket if you want to jump start it faster. :)
  • Code Switch - Partial Classes?
    2 Posts | Last Post February 28, 2013
    • It would be nice if this extension could support code switching between partial classes in C#. We don't need it very much but did some refactoring today and it would been really nice to have.
    • Good idea, I like it.  I've turned it into a Trello backlog card here: https://trello.com/c/lEQ840VZ for voting/comments.
      
      Feel free to vote up the card, and/or fork the code on BitBucket if you want to jump start it faster. :)
  • Would you be willing to support F# as well?
    2 Posts | Last Post February 28, 2013
    • I've got several F# projects and would be interested in this tool supporting them as well.
    • Yep, I have some interest and there is an existing card on the Trello backlog here:  https://trello.com/c/bzZtNrH9
      
      Feel free to vote up the card, and/or fork the code on BitBucket if you want to jump start it faster. :)
  • New Icons for Spade
    2 Posts | Last Post February 22, 2013
    • Are there any plans to update the icons in the Spade to match the new Visual Studio 2012 icons?
    • Thanks for the reminder Brandon.  Microsoft did not originally release the icon library with VS2012, but I went and checked and they have been published now.
      
      I've put in a Trello card for the next release to update the icons accordingly: https://trello.com/c/2N21g0HQ
  • About memory leak
    2 Posts | Last Post February 20, 2013
    • After 16..24 hours of work without reopen VS 2012, memory allocated is over 650MB, this make VS too slow, if I remove CodeMaid, have no trouble.
      I call twice "Cleanup All Code..." over my solution (www.pildra.com.br), about 12K lines, Windows Task Manager report 730 MB VS allocated, before is about 115MB.
      I think have a memory leak.
      CodeMaid is a good tool.
      
      Thanks.
      
    • I'm glad you like the tool, and thanks for reporting the memory usage you are seeing.  I have turned this into a BitBucket issue here: https://bitbucket.org/s_cadwallader/codemaid/issue/185/review-and-improve-memory-usage-during
  • Is it possible to add new file types that codemaid works with?
    2 Posts | Last Post February 12, 2013
    • I have been working with Sandcastle documentation which has an extension of .aml and would love to have codemaid auto format documents, however it does not recognize the extension. 
    • Hi Jim -
      
      I've added your feature request to the Trello backlog here: https://trello.com/c/ULEZa4xF
      
      I'm not familiar with Sandcastle documentation, but if you'd like to email me a small sample via codemaid at gmail I can take a look to see how much work it would be to support it.
      
      -Steve Cadwallader
  • Mistake in skipping files.
    2 Posts | Last Post February 12, 2013
    • I use CodeMaid 0.5.6, on my projet have many source files (in C#) with name ended in Designer, these files is skipped.
    • Thanks for pointing that out.  You can fix it by going to CodeMaid->Configuration->Cleaning->File Types and changing the exclude regular expression from .*.Designer.cs to .*\.Designer\.cs   This is intended to exclude windows forms generated code, but the periods were not being properly escaped so it could improperly ignore similarly named files.
      
      I've checked in the fix for this and it will be present in the next release.  Thanks again for your help finding that. :)
1 - 10 of 66 Items