CodeMaid

Free

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.

(141) Review
Visual Studio
2013, 2012, 2010
Download (369,994)
7/20/2014
0.7.3
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (141)
Q and A (110)
Sign in to write a review
Sort by:

by Rbby | Thu 8:47 AM

Very handy tool and for free! Keep up the good work!

Steve Cadwallader Thu 10:24 AM
| Edit |
Delete

Will do, thanks! :)

by ShrenikOne | July 03 2014

First its awesome and second its awesome, very light weight and incredible. But for some reasons it doesn't work on solution level clean-up all. I have mix projects in solution, ASP.NET MVC, Web API, Silverlight, WCF, Windows Service etc.. and total around 50+ projects excluding unit test projects :)... if it work at solution level then save more time for me and save me 50+ individual project level clicks...

Thanks again for your tool, its really helpful..

Steve Cadwallader July 03 2014
| Edit |
Delete

Thanks for the high compliments! :)

VS2013 had a known issue with solution level cleanups being disabled. They fixed it recently with Update 2. If that doesn't do the trick a shortcut is you can multi-select projects and do cleanup on several at once. Also feel free to open a BitBucket issue and we can figure it out if it wasn't the VS update.

Keep enjoying! :)

by Daniel Cazé | June 30 2014

This tool saved my life!!!
I liked a lot.

I will feel so wonderful if more stylecop rules added at cleanup processing

- sorry by my bad english

Steve Cadwallader July 01 2014
| Edit |
Delete

Thanks :) To suggest or vote for specific StyleCop rules please go to the backlog here: https://trello.com/b/VVxVhbQv/backlog

by Felipe F. Diogo | May 20 2014

All I have to say is that the extension is awesome.

one of the features that I've come to like is the close read-only files.

Also the CodeMaid Spade blew my mind away.

sry for grammar since english is not my native language.

Keep up the good work and I'm looking forward for updates.

Steve Cadwallader May 23 2014
| Edit |
Delete

Thanks - I really appreciate the feedback and am glad you're enjoying it so much. :)

by Jay Muralee | May 15 2014

I'm blown away! Where have you been all my coding life? Simple little things like collapsing all the projects in the solution explorer - such a time saver.

Steve Cadwallader May 17 2014
| Edit |
Delete

*grin* thanks :)

by rmoc | April 30 2014

by Brice Williams | April 14 2014

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

Steve Cadwallader April 14 2014
| Edit |
Delete

Thanks. :) For spoiler's about what's coming next, vote/comment on our public backlog here: https://trello.com/b/VVxVhbQv/backlog

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 |
Delete

If you'd like to look into it together, please open an issue on BitBucket here: https://bitbucket.org/s_cadwallader/codemaid/issues

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 |
Delete

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: http://www.codemaid.net/contact/

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 |
Delete

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 |
Delete

Very glad to hear you like it. :)

That request is in the backlog already and gaining popularity - vote it up here: https://trello.com/c/MVmS0Jd0

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 |
Delete

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 |
Delete

Thanks for the suggestions, I've added the blank lines for functions to the backlog - vote it up here: https://trello.com/c/7kfFrz0o

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 |
Delete

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! https://trello.com/c/7kfFrz0o

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


  • 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
  • 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?
11 - 20 of 110 Items