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.

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

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

by ..walt | November 27 2014

It cleans, it organizes and it can call in the heavy movers (Resharper in my case). And Steve ... thanks for responding to so many people.

Steve Cadwallader November 27 2014
| Edit |
Delete

I'm glad you're enjoying it, thanks for the positive review. :)

by VikNet | November 22 2014

by MJ11235 | November 19 2014

I love it!

Steve Cadwallader November 19 2014
| Edit |
Delete

Wonderful! :)

by ian-craig | November 17 2014

by Rishikesh Parkhe | November 06 2014

Fantastic plugin to visual studio :-) 4 stars....

More customisation options will be handy... to format internal code (like if statements / style cop whining etc... )

Also if there is an option to re-organize selected files (just like cleanup selected files), it will be great.

Awesome stuff!

Steve Cadwallader November 08 2014
| Edit |
Delete

Thanks for the review and suggestions. :)

Some of the internal code details aren't available with the current VS API, but the new Roslyn compiler in VS14 will provide a lot more information that will make those kind of cleanups possible in the future. If you have specific requests check out the Roslyn list in the backlog: https://trello.com/b/VVxVhbQv/backlog

I've also added a new card to the backlog for reorganizing selected files, great idea: https://trello.com/c/cAOyUtUR

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


  • 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: https://trello.com/c/VxCKZLop
  • 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 document.name, 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.
      
      Regards,
      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 https://trello.com/c/PludijKv.  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: https://trello.com/c/2LFW2Z9m
    • 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: https://bitbucket.org/s_cadwallader/codemaid/issue/249/xml-comments-formatting-issue-duplication
  • 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: https://trello.com/c/unqeCWlk
  • 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
31 - 40 of 130 Items