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, SCSS, JavaScript and TypeScript coding.

(149) Review
Visual Studio
2013, 2012, 2010, 14
Download (407,029)
8/19/2014
0.7.4
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (149)
Q and A (115)
Sign in to write a review
Sort by:

by Shockwaver One | August 27 2014

Saved my day, present and future ones, in a way you cannot even immagine XD.
Amazingly done, keep it up!

Cheers.

Steve Cadwallader August 28 2014
| Edit |
Delete

Fantastic, thanks! :)

by Nicw | August 24 2014

I may have missed something here but I have not found it. I always like to
know what changes are going to be made before anything goes making them. So
being able to scan the solution then review the suggested changes would be a
must for me.

as a test I created a simple VS2013 MFC application with various classes and
code then ran CodeMaid Clean up All Code. The result was then not able to
be compiled a CodeMaid removed the EOF character from the end of the .rc2
file, so I would be very fearful of running this on larger projects.

Steve Cadwallader August 25 2014
| Edit |
Delete

Thanks for the constructive criticism, that is very helpful.

For that specific item with the .rc2 EOF indicator not being on a separate line, Issue #18 opened and resolved for the next minor release. There is a "Remove end of file trailing new line" option that could be disabled in the interim.

I've also placed a card in the backlog to investigate adding integration tests that would iterate across all the different project templates and invoke CodeMaid actions upon them. https://trello.com/c/Sqv2bIWC

by Homer_ | August 21 2014

by Miro Jeliaskoff | August 12 2014

I did not know it existed but now I am happy. I love open source because there is no corporate guy to decide what the world needs. WE do it!

Steve Cadwallader August 13 2014
| Edit |
Delete

Amen! :)

by endl | August 08 2014

A good tool for VS2013!

by Deniz Şevderoğlu | July 31 2014

Çok yaralı buldum.Teşekkür ederim.

Steve Cadwallader July 31 2014
| Edit |
Delete

If Google translate is correct, you're welcome. :)

by Ma3ztro | July 30 2014

by JAltepeter | July 30 2014

by Rbby | July 24 2014

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

Steve Cadwallader July 24 2014
| 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. :)

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


  • CodeMaid settings get reset every week or two.
    6 Posts | Last post May 14, 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?
    • I can now say for sure that the same problem also happens after updating to VS 2013 Update 2. All Settings were lost again.
    • Thanks for reporting it, and I saw the same thing occur with VS2013 Update 2.  Card created in the backlog here: https://trello.com/c/Iwgn3De3
  • can't find Microsoft.VisualStudio.Package.LanguageService.10.0
    2 Posts | Last post May 09, 2014
    • When i right click a solution and click 'clean all code...' i get below error message. This is in VS2013 update 1
      
      ---------------------------
      Microsoft Visual Studio
      ---------------------------
      Could not load file or assembly 'Microsoft.VisualStudio.Package.LanguageService.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
      ---------------------------
      OK   
      ---------------------------
      
    • This is a known Microsoft bug in VS2013.  They've promised to fix it in VS2013 Update 2.
      
      Please follow through this issue for details on a workaround: https://bitbucket.org/s_cadwallader/codemaid/issue/220/vs2013-cleanup-all-code-shows-error
  • My CodeMaid isn't effect in javascript file
    2 Posts | Last post May 02, 2014
    • the code map is ok in .cs file, but it is not effect in js file.
      ps.when I open a project,the spade show it refresh the js file,but then it show nothing ,my IDE is vs2013 
    • VS does not have a code model available through its API for JavaScript files.  So what you are seeing is expected - Spade does support C# but does not support JavaScript.
  • 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 (https://bitbucket.org/s_cadwallader/codemaid/issues) 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: 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
11 - 20 of 115 Items