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.

(135) Review
Visual Studio
2013, 2012, 2010
Download (315,868)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (135)
Q and A (103)
Sign in to write a review
Sort by:

by Brice Williams | Mon 5:00 PM

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

Steve Cadwallader Mon 11:59 PM
| 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 Sun 11:32 AM
| 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!

by Proco | January 27 2014

Excellent tool, helpfull when organizing code

by ybbozman | January 24 2014

Great Extension.
By default, *.rc2 files should be excluded. If you remove the last CR/LF at the end of those files (ie if the file doesn't end with an empty line), the project doesn't compile anymore.

Steve Cadwallader January 25 2014
| Edit |

Thanks Fred, glad you like it.

I've put a card in the backlog with a question about if .rc files should also be excluded - please check out

by Jan Van der Haegen | January 16 2014

How did I ever write code without this?
Thank you!

Steve Cadwallader January 17 2014
| Edit |

*grin* thanks! :)

by Patrick Sperneder | January 15 2014

This "great" plugin destroyed one week of work.
Im really angry, cleaning up singel files works good, but when it came to cleaning up the whole solution it is deleting whole files!

Steve Cadwallader January 15 2014
| Edit |

I'm very sorry to hear that happened to you. I have not heard of it happening before to anyone else, and I'd like to determine a root cause if you have any interest in pursuing it further. Please contact me directly via codemaid on gmail if you would like to discuss.

by Caino MDK | December 21 2013

Since the latest update Spade and Reorganize (And also the "add new line between Methods function) does not work in VS 2013 Ultimate anymore. :(

Steve Cadwallader December 21 2013
| Edit |

That's odd that you'd be seeing intermittent behavior like that. Have you tried the classic uninstall/reinstall technique? If that doesn't help please report some more details on BitBucket and we can take a look:

by ScruffyDuck | December 19 2013

I have used CodeMaid on and off for a number of years and it is now installed in VS2013. I use the features constantly and find the Spade to be vital to my work!

Steve Cadwallader December 20 2013
| Edit |

Awesome - very glad to hear it! :)

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

  • 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. :)
  • 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:
      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:
  • 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 (, 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.
    • 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:
  • 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:
      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. :)
  • Unable to uninstall from VS2012
    5 Posts | Last post January 22, 2013
    • I downloaded CodeMaid v0.5.6 and installed it.
      I've run uninstallation (from Tools>Extensions) and then restarted VS but the CodeMaid menu is still present and I can't open the solution that I'm working on (it's quite large) because CodeMaid hangs (The code maid spade pane just says 'loading <classname>').
      I'd be grateful for a workaround as the only way I can open this solution now is to run VS in safe mode!
    • Key fact that I haven't included above - this was using VS 2012
    • In regards to the hang, is it a C++ solution?  There is a known issue that Microsoft is looking into with the VS2012 C++ API.  The workaround for now is to close the Spade tool window.  Details:
      I haven't heard of that installation difficulty before.  CodeMaid is utilizing the standard VSIX installer for Visual Studio extensions.  Here's a few things to check/try:
      * Can you disable the extension?
      * Did you install it under a different Windows user profile?
      * Is it also installed under VS2010?
      * If you run Visual Studio as an administrator, does the uninstall work correctly?
      Hope it helps,
      -Steve Cadwallader
    • Thanks for responding Steve,
      It's a C# solution (with around 25 sub projects, including MVC4). The hang does look related to the spade tool window - but your link doesn't seem to work. VS only hangs when I open my project. I am able to access the code maid menus before I've opened any project.
      -When I first installed CodeMaid, I did so running as administrator. I've tried to uninstall as administrator.
      -Uninstall/Disable both complete (via Extensions & Updates window) but don't remove the CodeMaid menu, although they do seem to remove the functionality behind the menu items. Is there a way to do a manual uninstall?
      -It is also installed under VS2010 but I've not tried running it
      -If I could clean up my installation, I could try installing it as a non-administrator user.
      It is now in a state where I've tried to uninstall it but now on VS startup I get an error message: The '... CodeMaidPackage ...' did not load correctly. This at least means I can open my solution and contine working!
    • Sorry to hear of your ongoing troubles.  I believe you need to uninstall it under both VS2010, and both VS2012 for it to be removed.  I would have expected it to disappear from VS2012 after it was uninstalled there though, so it sounds like something in your install is corrupted.
      You could try forcing an uninstall, check out:
  • Cleanup on Save Causes VS12 Freeze-up
    4 Posts | Last post January 13, 2013
    • For a while, I've had the problem of Visual Studio freezing up randomly, with the only message being that "Visual Studio is waiting for a background operation to complete". The only way to regain control is to kill Visual Studio from the task explorer. 
      I disabled automatic format on save, and I haven't encountered the issue since disabling it more than 4 weeks ago.  I'd like to get an error log or exception listing, but given that I can't get to the output window when this occurs, the error logging in CodeMaid won't help.  Any idea on how I can identify the exact issue w/CodeMaid?
      This happens at work and and home, so it's not just a computer configuration problem.  It did seem to happen occasionally in VS2010, but much less frequently.
    • Hi MackieChan -
      There was a fix for this issue in the latest release v0.5.6 which was released three weeks ago.  Are you still seeing the issue with v0.5.6 installed?
      If so please let me know and we'll turn this into a BitBucket issue.  Some information that would be helpful to diagnose the problem would be if there is a file that consistently reproduces the issue, the language being used, and if any modal dialogs are appearing during the cleanup process.
      Hope it helps,
      -Steve Cadwallader
    • Yep, I've confirmed that it is v0.5.6 that I'm using and that it still occurs.  It's C#, and there isn't a specific file that seems to reproduce it; it seems to happen randomly (usually it happens about 1-3 times a day, given an 8 hour day).  No model dialog occurs during cleanup, I just get a "Codemaid is cleaning {filename}" in the status bar and Visual Studio freezes.  I'm not 100% sure that it's CodeMaid, but when I turn off CodeMaid's format on save, the issue seems to go away.
      I've disabled every other addon/plugin except resharper, but the issue always occurs as long as I have CodeMaid format on save enabled.
    • Converted to a BitBucket issue here:
41 - 50 of 103 Items