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

(141) Review
Visual Studio
2013, 2012, 2010
Download (369,153)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (141)
Q and A (110)
Sign in to write a review
Sort by:

by Rbby | Thu 8:47 AM

Very handy tool and for free! Keep up the good work!

Steve Cadwallader Thu 10:24 AM
| Edit |

Will do, thanks! :)

by ShrenikOne | July 03 2014

First its awesome and second its awesome, very light weight and incredible. But for some reasons it doesn't work on solution level clean-up all. I have mix projects in solution, ASP.NET MVC, Web API, Silverlight, WCF, Windows Service etc.. and total around 50+ projects excluding unit test projects :)... if it work at solution level then save more time for me and save me 50+ individual project level clicks...

Thanks again for your tool, its really helpful..

Steve Cadwallader July 03 2014
| Edit |

Thanks for the high compliments! :)

VS2013 had a known issue with solution level cleanups being disabled. They fixed it recently with Update 2. If that doesn't do the trick a shortcut is you can multi-select projects and do cleanup on several at once. Also feel free to open a BitBucket issue and we can figure it out if it wasn't the VS update.

Keep enjoying! :)

by Daniel Cazé | June 30 2014

This tool saved my life!!!
I liked a lot.

I will feel so wonderful if more stylecop rules added at cleanup processing

- sorry by my bad english

Steve Cadwallader July 01 2014
| Edit |

Thanks :) To suggest or vote for specific StyleCop rules please go to the backlog here:

by Felipe F. Diogo | May 20 2014

All I have to say is that the extension is awesome.

one of the features that I've come to like is the close read-only files.

Also the CodeMaid Spade blew my mind away.

sry for grammar since english is not my native language.

Keep up the good work and I'm looking forward for updates.

Steve Cadwallader May 23 2014
| Edit |

Thanks - I really appreciate the feedback and am glad you're enjoying it so much. :)

by Jay Muralee | May 15 2014

I'm blown away! Where have you been all my coding life? Simple little things like collapsing all the projects in the solution explorer - such a time saver.

Steve Cadwallader May 17 2014
| Edit |

*grin* thanks :)

by rmoc | April 30 2014

by Brice Williams | April 14 2014

Excellent Visual Studio extension. Can't wait to see upcoming new features.

Steve Cadwallader April 14 2014
| Edit |

Thanks. :) For spoiler's about what's coming next, vote/comment on our public backlog here:

by Lukasz Ciastko | April 11 2014

I used to use CodeMain, but it's not compatible with the latest Windows Universal Apps. It's impossible to clean up classes inside a shared folder.

Steve Cadwallader April 13 2014
| Edit |

If you'd like to look into it together, please open an issue on BitBucket here:

by user rob | April 10 2014

Code Maid persistently crashed the GUI for the project I maintain without me using any code maid features. I guess its for hobby use only.
Using C++ VS2010 Vista.

The loaded solution consists of 8 legacy programs with origins in VMS consisting mostly of C with Win API with some newer simple C++.

The VS GUI crashed in the following instances: rearranging window positions, selecting class view and while browsing the code before I un-installed it. After un-installing and before installing of code maid there were no VS crashes. I have been using VS 2010 to maintain this code since 2010 without any GUI crashes.

Steve Cadwallader April 11 2014
| Edit |

Sorry that you had a bad experience.

There are some fixes for VS2010 available in the latest beta. Message me through here for more details:

by digovc | April 07 2014

by mwbrady68 | April 05 2014

by honsinger | March 31 2014

This is fantastic. Don't for one minute think it's just a pretty thing, for me it is a major productivity boost!

Thank you.

Steve Cadwallader April 01 2014
| Edit |

You're welcome - I'm happy to hear it is giving you a boost. :)

by sharethl | March 24 2014

by samaursa | March 23 2014

Wonderful extension! Thanks to Steve for this amazing piece of work. Pretty much stopped me from buying Visual Assist for VS 2013 (binded Spade to Alt+m and now I can navigate symbols in the file just like I do in VA).

Suggestion: Spade should have a search box where I can search all the symbols that it shows in the current file.

The rest of the functionality just keeps making this extension a must have. Works beautifully in our moderately sized codebase.

Steve Cadwallader March 24 2014
| Edit |

Very glad to hear you like it. :)

That request is in the backlog already and gaining popularity - vote it up here:

by CelPlusPlus | March 13 2014

Excellent extension - integrates well with resharper.

Features which I was looking for: Spade and Reorder. Really, really useful.

Steve Cadwallader March 14 2014
| Edit |

Thanks :) I'm a big fan of ReSharper so playing nicely with it is a must.

by Predrag Glumac | February 25 2014

by Donat Michal | February 23 2014

by mober | February 01 2014

One of the best free Visual Studio extensions!

by oviano | January 31 2014

Trying to use this with VB, but as someone else has written, doesn't insert spaces between functions.

Also, it would be nice to be able to insert spaces between if blocks.

Seems like a few things missing for VB then.

Steve Cadwallader February 01 2014
| Edit |

Thanks for the suggestions, I've added the blank lines for functions to the backlog - vote it up here:

If block blank lines would require the Roslyn compiler (future Visual Studio release).

by Kent Foyer | January 31 2014

Great tool. However, it doesn't seem to format VB as well as C#. One thing I noticed is it does not add an empty line between functions. Running CodeMaid on the below will not add an empty line between Foo and Bar.

Public Class Class1
Public Function Foo() As Integer
Return 1
End Function
Public Function Bar() As Integer
Return 2
End Function
End Class

Steve Cadwallader February 01 2014
| Edit |

Thanks for the suggestion. You're right VB cleanup does not currently cover that scenario. I've added it to the feature backlog, vote it up!

1 - 20 of 141 Items   
Sign in to start a discussion

  • Crash during opening of unsaved file.
    3 Posts | Last post July 12, 2013
    • If I copy a piece of code to a different C# code files and go back to the file that the code was copied from (two files are unsaved at this point), Visual Studio crashes and had to restart. If I save all the files immediately and reopen the file it doesn't crash. This crash is happening on the latest update, which I installed today on July 11.
      I copied code in two different projects.
    • I'm unable to reproduce this issue.  Will you create a defect on BitBucket with some more information (e.g. what version of VS, an export of your settings, more steps to reproduce, sample files, etc.)?
    • Link to BitBucket:
  • CodeMaid cleanup now crashes VS 2012 after a Rename Refactor
    9 Posts | Last post July 11, 2013
    • After today's update (July 9, 2013), CodeMaid is now crashing Visual Studio 2012 after a file is saved after an F2-initiated Rename Refactor. This occurs after ALL renames, including methods and classes. If I rename class 'SampleClass' to 'SampleClass2' for example, all other code files referencing SampleClass are changed and saved successfully, but SampleClass.cs is not saved and Visual Studio freezes for a while with the message "CodeMaid is cleaning 'SampleClass.cs'..." in the lower left corner (using about 30% of my i5 750 CPU consistently). 
      After about half a minute, Visual Studio crashes and I get the following message from Windows:
      The crash also occurs after refactoring the name of a method not referenced by any other code.
      This is particularly frustrating because I use CodeMaid constantly. I'm going to try re-installing it with the hope of the error disappearing.
    • Reinstalling didn't fix the issue, but I found a setting that prevents crashing. In the top Cleaning section in the Configuration window, unchecking 'Use undo transactions' eliminates the issue. So the crash seems to be related to using CodeMaid's undo feature with Rename Refactors.
    • Strange enough, I don't seem to be missing any undo transactions with it unchecked.
    • Yes, this is a known issue that was reported with v0.6.1 - see BitBucket here:
      The workaround you suggested is the recommended approach for now (disable undo transactions).
      Thanks for the report and sorry for the trouble.
    • Thanks for the fast response! No need to apologize, it was easy to fix and the extension still works fantastically.
    • I've just uploaded a beta release with a fix for this issue here:
      If you have a chance will you give it a try?  The change is pretty minimal, a new configuration option that by default will skip undo transactions during automatic cleanup on save which is what led to an infinite loop.
    • Just downloaded it, I'll test it during work today and let you know. Thanks for the quick fix!
    • The fix worked perfectly, thanks!
    • Thanks for confirming - official release v0.6.2 now available. :)
  • CodeMaid not respecting compiler directives
    2 Posts | Last post July 10, 2013
    • Hello,
      I have just come across your fantastic utility, but in my codebase I have alot of compiler directives inside my code.
      If I have a compiler directive inside a method, it handles the reorganizing fine.
      If I have a compiler directive around a method or some properties they loose their place.
      I tried too wrk around this by commenting out the #if #endif statement, but it only moves the comments above the section and not below it.
    • Hi d3 -
      You're right, reorganization does not currently handle preprocessor directives.  There is a card in the backlog to add that functionality, feel free to visit it to vote it up and/or add comments:
      Glad to hear otherwise you are liking the tool. :)
      -Steve Cadwallader
  • Disable Digging (Spade)
    2 Posts | Last post June 26, 2013
    • I don't use nor want the Digging (Spade). Can you add an option to completely disable it so its not using resources? I use CodeMaid for it's formatting and better build dialog.
    • You can simply close the Spade tool window.  If the window is not open it will not do any processing.
  • Hanging VS
    4 Posts | Last post June 23, 2013
    • I installed codemaid tonight using nuget, but now when I open my unmanaged C++ solution in VS2012 and try to open a file, VS hangs "waiting for background operation to complete". I gave it 10 minutes hoping it was a one time set up issue. I've had to disable it for now. Suggestions on what to check? I have these extensions installed: AStyle, Indent Guides, Visual Studio Extensions, VS Commands for Visual Studio 2012, Windows Debugger Extension, Windows Driver Tools
    • This is a known issue with the C++ API in VS2012.  You can use CodeMaid, but you will have to close the Spade tool window which accesses parts of the API that are now hanging in VS2012 (used to work in VS2010).  There is an open bug for CodeMaid here:
      and more importantly an open bug on Microsoft Connect here:
      If you can go vote up the Microsoft Connect bug that would be very appreciated and we'll hopefully get it resolved soon!
    • Marked as fixed by Microsoft in November and scheduled for the 'next major release' whatever that means. Still happens on Update 2.
    • That means the next year number release (e.g. VS2013).  I've spoken with them a lot and they've provided some work-arounds in the short term, but they require some significant changes so I've been heads down expanding out the unit tests before tackling it.  The BitBucket issue is still the best place to keep tabs on this item:
  • 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?
    • 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:
  • 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:
      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: 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. :)
41 - 50 of 110 Items