CodeMaid

Free

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

(176) Review
Visual Studio
2015, 2013, 2012, 2010
Download (500,527)
3/21/2015
0.7.6
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (176)
Q and A (133)
Sign in to write a review
Sort by:

by Tagoma | Thu 3:52 AM

Excellent tool!

by QuYong | April 11 2015

by BillW33 | April 09 2015

A very well written and very helpful tool.

Steve Cadwallader April 10 2015
| Edit |
Delete

Thanks :)

by JPDavinci | April 03 2015

Steve;
I use this tool every day. Just made a small donation, but won't forget about you in future as I know you work hard on this stuff. Simply an excellent tool all around!

Steve Cadwallader April 04 2015
| Edit |
Delete

That was very generous of you and it is much appreciated. Keep enjoying the tool, more to come! :)

by dwight12 | April 03 2015

I have few extensions and addins in Visual Studio.

This is one my must-haves.

I love the ability to clean entire solutions.

Steve Cadwallader April 04 2015
| Edit |
Delete

Wonderful, glad to hear it! :)

by probackpacker | March 23 2015

by Ondřej | March 13 2015

Unfortunately does not support Visual Basic .NET code, otherwise 5/5.

Steve Cadwallader March 15 2015
| Edit |
Delete

Thanks for the feedback. We do support VB, but you're very right that some of the features are limited. Reorganization for example we've tried to implement in the past but the VS API's for VB didn't work out like the C# ones.

If there's any specific feature you're missing, feel free to point it out in the backlog - or it may be something already there to vote up: https://trello.com/b/VVxVhbQv/backlog

by Patrick Smacchia [NDepend] | March 08 2015

by RaviShankark | February 23 2015

I am using this tool from past 1 year and it is very good and handy tool for developer.

by Ammar.Zaied | February 13 2015

Good work.

by Ray Cheng Ray Cheng | February 04 2015

CodeMaid sorts "using" directives, but StyleCop wants the "System" directives be listed first.

After running CodeMaid clean up, I got the following StyleCop warning.

"System using directives must be placed before all other using directives."

Steve Cadwallader February 05 2015
| Edit |
Delete

You can configure VS to place system directives first (old convention they've gone away from). It is in Tools->Options->Text Editor->C# and called "Place system directives first..."

Hope it helps.

by michal_bb | January 30 2015

A must have plugin for VS. I especially like the ability to go find an opened file in solution explorer, code cleanup, code reorganizing and showing progress in the taskbar. 5*****

Steve Cadwallader January 31 2015
| Edit |
Delete

Thanks! :)

by Steven Goodgrove | January 29 2015

by ErdincDogrul | January 27 2015

Awesome and perfect. thank you

Steve Cadwallader January 31 2015
| Edit |
Delete

You're very welcome! :)

by Michaël Polla | January 05 2015

This extension is really great ! I wish I'd known it before. For now I mostly used the cleanup functionality, and it's very useful. It already works well with Visual Studio 2015 (Preview). Thank you for this great work !
**
[FR] Je recommande cette extension, très pratique. J'ai pour l'instant surtout utilisé la fonction de "nettoyage" du code, qui apporte des modifications très appréciables. Fonctionne très bien avec Visual Studio 2015 (Preview).

Steve Cadwallader January 06 2015
| Edit |
Delete

You're very welcome! :)

by Yatajga | January 02 2015

Good tool.

by helixwmonkey | December 31 2014

Very nice tool. Just download and try and it amazes me~

Steve Cadwallader December 31 2014
| Edit |
Delete

Thanks! :)

by ytf1 | December 23 2014

a very good plugin,thanks

Steve Cadwallader December 23 2014
| Edit |
Delete

Glad you like it! :)

by Krzysztof Osowicki | December 18 2014

by PadamkNegi | December 06 2014

I love this plugin. i was using it with vs 2010 and it worked perfectly, but with vs 2013. It crashes my visual studio again and again. and corrupts my .aspx page (html). i don't know why.?? Please resolve this issue.

thank you

Steve Cadwallader December 06 2014
| Edit |
Delete

I'm glad you love the plugin, and sorry that you're encountering a difficulty. If you can open an issue on GitHub with some more details (e.g. code sample before and after) then I can look into it further.

https://github.com/codecadwallader/codemaid/issues

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


  • It is one of the best free VS extension.
    2 Posts | Last post February 01, 2014
    • Thank you for developing CodeMaid. I'd like to suggest some features for CodeMaid. 
      - Need an option to remove unwanted references while doing the cleanup.
      - Highlight unused variables within a class while editing
    • You're very welcome, glad you like it. :)
      
      The first feature is already included, check out CodeMaid->Configuration->Cleaning->Visual Studio->Run remove unused using statements
      
      The second feature will require the Roslyn compiler (future edition of Visual Studio) but is one I will keep in mind if Microsoft doesn't bake it in.  There are other tools (e.g. ReSharper, not free) that support that functionality now.
  • Not working anymore?
    2 Posts | Last post January 30, 2014
    • I don't know why but after I installed VS2013 Update it's not working. Nothing happened tried to clean code. Is it bug?
    • There is a known Visual Studio bug that will disable the CodeMaid cleanup commands within the solution explorer (they will work elsewhere such as within the document).  There are details including a link to the Microsoft Connect issue and a workaround through the CodeMaid issue here: https://bitbucket.org/s_cadwallader/codemaid/issue/220/vs2013-cleanup-all-code-shows-error
  • 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!  https://trello.com/c/rAXzWiUy
  • 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?
      
      Thanks
    • 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?
  • CSHTML
    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!  https://trello.com/c/sZUoUcTn
  • 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: https://trello.com/c/WTkal55t
      
      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:
      Reference\.vb
      Reference\.cs
    • 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: https://trello.com/c/WTkal55t
  • 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.
41 - 50 of 133 Items