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 (316,508)
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 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!

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

  • CodeMaid settings get reset every week or two.
    4 Posts | Last post January 29, 2014
    • This is really frustrating.  Every couple of weeks, my CodeMaid settings get set back to defaults.
      I don't want the defaults, that's why I changed my settings.
    • Sorry to hear it.  I haven't seen that issue or had any other users report it.  Have you noticed any patterns about when your settings are getting reset, such as it happens after performing an operation in another extension?  My best guess would be that the shared space where user preferences are stored are getting overwritten.
      As a workaround until we can identify the source of the reset, I'd recommend exporting your settings when they're valid so you can quickly re-import them once you've noticed they have been reset.
    • I have the same problem, just today! And before I found the codemaid settings lost, I made an update of Visual Studio 2013 (Update 1). Thus, although I can not say this for sure, the lost settings may correspond to updates made in VisualStudio.
    • Thanks for the details.  Has anybody else noticed a similar issue when applying the VS2013 Update 1?
  • Move Contextmenu Items to Submenu
    2 Posts | Last post January 22, 2014
    • Hi, first of all thanks for this extension.
      But.. can you create an option that all contextmenu items of codemaid can be wrapped in a submenu?
    • You're welcome.  Your suggestion has been added to the backlog, vote it up!
  • HTML Formatting
    3 Posts | Last post January 20, 2014
    • First off, just want to say what a great plugin this is. Question is, when I go to format HTML code it moves part of a tag onto the next line. Example being if I have a grid column with a number of properties it will format it so there is two on each line etc. Can anyone help?
    • Very glad you like it. :)
      Visual Studio has some built in formatting options that cause that behavior, and CodeMaid invokes Visual Studio's formatting as part of the cleanup process.  Check out your settings under Tools->Options->Text Editor->HTML (Web Forms)->Formatting->Tag wrapping
      Hope it helps.
    • Hi, first of all thanks for this extension.
      But.. can you create an option that all contextmenu items of codemaid can be wrapped in a submenu?
    2 Posts | Last post December 28, 2013
    • Hi, feature request to also CodeMaind .cshtml files...
    • Thanks for the suggestion.  It is already in the backlog, vote it up!
  • Ability to clean code from command line?
    2 Posts | Last post December 22, 2013
    • Did not see any indication of this in the docs, but I would like to run the cleanup routines from the command line.  Is this something that would be easy to do?
    • Hi Scott.  A few users have made that request, but no CodeMaid is currently heavily dependent upon Visual Studio's API and extension model so it is not accessible outside of the IDE.
  • Excluding a file type "Unrecognized escape sequence"
    2 Posts | Last post December 20, 2013
    • Not sure who else to ask, so might as well ask the Dev :) I'm trying to exclude file types that exist with in a folder named Generated. I tried .*\Generated\.cs. This seems to work initially. When I select a file inside one of these folders, the option to clean the file is gone, which is exactly what I would expect. However, I try to clean all code and I get an error from the parser that \g is an unrecognized escape sequence. How would I go about getting this to work? Thanks in advance.
    • Hi Derek -
      The exclusion expressions are fed through a regular expression matcher - have you tried escaping the back slash \\ ?
      If that doesn't do it, go ahead and vote up the backlog card here with your comments:
      Hope it helps, :)
      -Steve Cadwallader
  • uninstall/Remove code maid from computer
    2 Posts | Last post December 15, 2013
    • how to uninstall/Remove code maid from computer.
      please help me..
    • Through Visual Studio's extension manager, which is under the Tools menu.
  • Skip auto generated classes for WCF References
    3 Posts | Last post December 14, 2013
    • Is it possible to exclude the "References" folder when doing a cleanup all on a project that has web references? Since these generated classes can at times be large and cleanup serves no purpose on those files since they will never be edited but always regenerated automatically, ignoring those files would speed up the clean up all process dramatically.
    • You could add the Reference File to the Excluded file types in the cleaning options, like:
    • Thanks for the response Alexander, that's very helpful. :)
      Greg: There's also a backlog feature card to extend the exclusion rules to include files with specifically identified <auto-generated> tags in the header which would cover those as well.  If you'd like to vote it up it is located here:
  • Web support for Spade
    2 Posts | Last post December 14, 2013
    • Did the spade currently support .cshtml, .js and .css files?
    • No, not currently.  The VS API provides a code model for C# and C++ so those are the supported languages.  In the future when Roslyn is released I expect to be able to increase the number of supported languages.
  • Windows 8 Progress bar
    4 Posts | Last post December 11, 2013
    • Did the progress bar get changed in 0.7.0?  I just updated my Win 8.1/VS2010 machine to 0.7.0 and both the progress window and the task bar icon now use the somewhat useless Win 8 travelling progress bar that doesn't actually show any progress.
    • No, there have been no updates to the progress bar with the v0.7.0 release.  Some operations are indeterminate (e.g. building an individual project vs. the solution) but that hasn't changed since previous releases.
    • Well, that's strange. I rolled back to 0.6.2 and the progress bars worked properly.  To confirm the problem I upgraded to 0.7.0 again and, lo and behold, I still get the proper progress bars.  I don't know if the second upgrade fixed it or the multiple restarts of VS, but works now.
      The CodeMaid progress bars are a great feature, but they were rendered useless by the Win8 style progress bar.
    • Strange indeed, but glad to hear you're back in business.
11 - 20 of 103 Items