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,100)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (135)
Q and A (103)
Sign in to write a review
Sort by:

by empty`void | June 28 2013

Visual Studio 2012 update 3 hangs waiting for a background operation when a C++ header is open.

Steve Cadwallader June 28 2013
| Edit |

Sorry for the trouble. Yes, this is a known issue introduced in the VS2012 API and resolved by the Microsoft team for the next major release. They've offered a workaround which I am working towards implementing. For more details:

For VS2012 C++ projects, you can close the Spade tool window and still use the rest of the functionality of CodeMaid for now.

by JeremyCa | June 24 2013

I use CodeMaid on a day to day basis. It's one of the first extensions that I install along with Mads' Web Essentials.

I particularly like the code clean up and code digging features. They have saved me numerous hours.

Steve Cadwallader June 26 2013
| Edit |

Very glad to hear it :)

by carbonrobot | June 20 2013

I can no longer develop without this plugin. The best plugins do one thing really well, and CodeMaid does exactly what I need it to do, really well, without extra junk or fanfare involved.

Steve Cadwallader June 23 2013
| Edit |

What a fantastic review - thank you! :)

by soniche | June 13 2013

by SeanMars | June 08 2013

It is good!! but very slow with large file...
can improve that?Or can disable the code digging.
just want the code cleaning.

thank alot

Steve Cadwallader June 08 2013
| Edit |

You're welcome. :). You can close the Spade tool window to disable code digging which will help with very large files. Performance improvements are in the works for future releases so stay tuned.

by jackofallcodes | June 07 2013

Fantastic! Finally a comprehensive code cleaner, that is free and does what it says on the tin!

by nugb00t | June 04 2013

by NeoN_Roma | May 18 2013

Good extension, but I have some remarks:
What for in VS2012 there "Find in solution" in context menu and "collapse all recursively" in solution explorer? VS2012 already has this functions.
There would be great if I can configure what buttons to display in context menu and solution explorer.
What do you think about updating icons to make them pixel-clear because thy are blurry?

Steve Cadwallader May 18 2013
| Edit |

Thanks for the feedback.

CodeMaid has had and continues support for those commands since earlier editions of Visual Studio (ex: VS2010). You're right that Visual Studio has newly introduced them in VS2012.

I've added a backlog card for voting/comments on configuring toolbar and context menu visibility here:

I'd be very happy to update the icons, do you know any icon designers who might be interested?

by Kevin_Schilling | May 10 2013

by Stephan_MZ | May 01 2013

As a C# developer, this tool is a pretty good collection of most wanted tools: easy to learn, easy to customize (e.g. the reorganizing tool). I like the code map displaying regions, embedded methods, interfaces etc., so I easily can navigate between them. Congratulations to the developer of CodeMaid!

I have checked CodeMaid against VS10x CodeMap and I have to say that for my daily work and regarding to what I really need: CodeMaid is on the same Level like VS10x CodeMap.

Steve Cadwallader May 02 2013
| Edit |

Thank you. :)

by Mhmmd | April 21 2013

No more cut-and-paste code reorganization for me. Would happily pay for it if it weren't free.

by casper_wilkes | April 21 2013

by kvishalv | April 18 2013

Steve, This is an awesome extension to my VS. Thank you very much for making it free :)

Steve Cadwallader April 18 2013
| Edit |

You're very welcome! :)

by MatthewS2077 | April 11 2013

Great extension!

Can you please add an option to turn off Spade if file is larger than configurable threshold?

I have a file (auto-generated classes from XSD) that is 35,000 lines and Spade takes forever! If I could tell Spade to ignore files longer than say 1000 lines it would be helpful.

Steve Cadwallader April 12 2013
| Edit |

Thanks! :)

Spade should fully run asynchronously - so although it may take a long time for it to load I wouldn't expect a performance hit except on a single core machine. I've created a Trello card for further discussion here:

by Lee Gray | April 08 2013

This is a seriously useful extension! I specifically use it to help preserve my sanity against "random whitespace syndrome" suffered by some other devs ;)

I would like to suggest that when you add new Insert/Remove features not to enable them automatically. It can produce unexpected results in the cleanup.

I would prefer using a CheckedListBox for the Insert/Remove items than LinkLabels, but that's a minor nitpick.

Thanks for the great tool!

Steve Cadwallader April 12 2013
| Edit |

Hehe, it is good to help any dev's sanity stay afloat. ;)

That's a good point for discussion about auto-disabling new features for consistency. The big downside is that users would have to manually search through the configuration on each update to find/enable new features. I think it is fairly common to enable new features, and give the user the option to go in and turn them off if they don't like them. Happy to discuss further, I've created a Trello card here: for discussion.

That's good feedback. I was trying to be clever and conserve space because those lists get pretty massive - but I have heard a few times that it is not very intuitive. Created a Trello card for that as well: for voting/comments.

Thanks for the feedback points, they're certainly appreciated - and enjoy. :)

by bryanvam | April 08 2013

Thanks for this awesome tool!

Would it be possible to have CodeMaid settings be part of the standard Visual Studio settings. This would allow exporting along with all the standard settings.

Steve Cadwallader April 12 2013
| Edit |

You're welcome - glad you like it :)

They used to be built in to VS settings, but I took them out several versions ago. The built in settings does not support nested levels for extensions without registry hacks (which was a source of issues) and the size of the configuration window is a fixed small size. Now in v0.6.0 CodeMaid supports exporting settings as well, but it is an independent step.

by compile | March 19 2013

Seems like a valuable extension to the Visual Studio IDE, but unfortunately it crashes Visual Studio 2013 for me whenever I open a project. It may be conflicting with another extension I have but I'm unware of it causing any issues.

Hopefully Steve can fix my issue.

Steve Cadwallader March 19 2013
| Edit |

There is a known issue with VS2012 C++ projects that Microsoft is looking into ( The workaround for now is to close the Spade tool window which is the part of CodeMaid that is accessing an API which is no longer functioning in VS2012.

If your issue is not with C++ projects, please let me know some additional details and I'd be happy to look into it. BitBucket is where we track issues so that would be the best place to report it:

by Xperiandri | March 09 2013

Very good extension to make code cleaner and more readable. Steve, thank you very much for this tool!

Steve Cadwallader March 09 2013
| Edit |

You're very welcome, thanks for the review! :)

by manit | March 07 2013

Works as advertised. Gets rid of extra spaces and few nice extras. Simple short cut CTRL+M+SPACE

It is a bit slow for large files but I can live with it.

by gdosborne | February 22 2013

Great extension!

41 - 60 of 135 Items   
Sign in to start a discussion

  • visual studio stop running after use codemaid
    2 Posts | Last post March 14, 2014
    • After install codemaid, i'm using visual studio 2010, and use the extension my visual studio stop running and  when i start again, i got the same result. I have uninstalled the codemaid extensioni and there is not any problem again. Do you have some setting or patch for this issue?
    • I'm not sure if this will help the problem you are describing, but there is a known issue that some users have encountered with multithreading performance.  You can disable that optimization through CodeMaid->Configuration->General->"Multithread options".  This is the default in the latest BETA release.
      If that isn't the problem, please open an issue on BitBucket ( including some details such as what you are doing when the error occurs, any relevant screenshots, and if the issue occurs consistently or erratically.
  • CodeMaid Window
    2 Posts | Last post March 08, 2014
    • My codemaid window was closed. Now I can't find how to re-open it.  Am I missing something simple?
    • The Spade tool window can be opened by selecting the CodeMaid menu across the top and then selecting the Spade menu item.
  • Out of memory
    2 Posts | Last post February 27, 2014
    • A project i'm on has 1400 clean'able code files associated with it, and so I was expecting it to take a while to run.  I came back a while later to find it ran out of memory causing VS to crash after around 1000 files had been sifted.  I re-ran the clean on the solution and the problem didn't appear again.
      Does this mean individual file changes are being stored in memory?  I didn't close anything down between the two run-throughs so I don't think more memory was in use the first or second time.
      Any info on how to prevent this from happening in the future would help.  This was on a laptop with 8gb ram with other development software running (sql server etc.)
    • Hi Phil_O -
      With the v0.7.0 release we confirmed that CodeMaid has zero object growth using the Red Gate ANTS Memory Profiler during batch cleanup operations.  The overall memory demands of Visual Studio will increase though the more you open documents.  The same behavior can be seen if you were to manually open each of those files and close them - Visual Studio's memory footprint continues to increase in size over time.
      Unfortunately I don't have a great suggestion currently, other than to do smaller cleanups (e.g. select half the projects and clean them, then select the other half later).
      Sorry I don't have a better solution.  If anybody else has any recommendations on limiting the Visual Studio memory footprint I'd appreciate it.
      -Steve Cadwallader
  • Facebook React JSX support
    2 Posts | Last post February 24, 2014
    • When do you plan to add JSX support?
    • It's not on the radar, but I've added it to the backlog for voting/comments here:
  • Can't exclude files in a folder of a project
    2 Posts | Last post February 24, 2014
    • We have flat file specification classes which need to have private "filler" properties interspersed with the public properties, so we want to not run CodeMaid on files in a particular folder.  I tried with regex to exclude them, but I believe the problem is the regex is tested against the, which excludes the path.  Would it be possible to enhance the regex testing to include the folder path inside the project?  For now I'll have to turn off CodeMaid, check these back in and lock them so no one inadvertently changes them with a cleanup.
      Chris Rock
    • Hi Chris -
      Makes sense, and it should largely be straight forward.  I saw you've forked the code base, so hopefully you've found your way to CodeCleanupAvailabilityLogic::IsFileNameExcludedByOptions.  This is called from two locations, once for a Document object (an open file) and once for a ProjectItem object (i.e. from the solution explorer).  The former is easier, just switch from passing document.Name to document.FullName but the latter will be a little trickier.
      I've added a card onto Trello for tracking the work here  Let me know if you're already looking into it, otherwise it's a pretty easy add I can follow through.
      Thanks for the suggestion, :)
      -Steve Cadwallader
  • Source control CodeMaid settings?
    3 Posts | Last post February 13, 2014
    • We currently use StyleCop to check our code. StyleCop has per-project settings which we keep in source control so the settings are always consistent across the team. Is there a way to do this with the CodeMaid settings?
    • Not yet, but per solution settings is a popular feature request in the backlog.  Track, vote, or comment here:
    • Great. Thanks!
  • BUG: Commented out code after comment, on every save multilpe extra empty comments
    2 Posts | Last post February 10, 2014
    • Running v0.7.0, if you have code:
      // This is a test
      //// This is commented out code
      And you 'clean', you will get:
      // This is a test
      //// This is commented out code
      Saving second time (clean on save):
      // This is a test
      //// This is commented out code
      Savind 3rd time:
      // This is a test
      //// This is commented out code
      So it is expanding rappidly. 
      The only things i've changed in the default settings are:
      - General: Checked 'Automatically run cleanup on file save'
      - Comments: Unchecked 'Skip wrapping on the last word'
      - Comments: Checked 'Run format comments during cleanup
      - Comments: Cleared all text in the multiline textbox 'Major Tags'
    • This is an open bug in the Issue Tracker:
  • Keep startup project expanded when openning solutions?
    2 Posts | Last post February 06, 2014
    • Can a collapsing option be made to (for solutions with multiple projects) keep the startup project expanded to it's root level. (There's an option like this for solutions with a single project.)
    • Thanks for the suggestion, I like it.  I've added it to the backlog here for voting and comments:
  • 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:
1 - 10 of 103 Items