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 (393,653)
8/19/2014
0.7.4
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (149)
Q and A (113)
Sign in to write a review
Sort by:

by Shockwaver One | Wed 7:55 AM

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

Cheers.

by Nicw | Sun 6:42 AM

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 Mon 10:35 AM
| 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 | 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 disabled in VS 2010 Premium
    3 Posts | Last post December 04, 2013
    • This is my 1st time trying to use tools like code maid.  After i installed the app using NuGet, the nuget manager app indicates that CodeMaid is disabled - when I doublie click the disabled Enable button, the app is ready to uninstall from the machine.  Answer links present for a 'disabled' search on the QA page are broken.  
      
      Any help will be greatly beneficial.
      
      regards, Ravi.
    • My bad. Fixed it. My colleague helped me out. For folks who might need the solution: In Tools-->Option window, Under Environment, there is an option 'Extension and Updates'. In my problem, Load per user extension when running as adminstrator was NOT checked. I checked it (set the checkbox to true) and re-started vs 2013.
      
      thanks for your patience.
      
      regards
      ravi.
    • Hi Ravi -
      
      I'm glad that you figured out the source of the problem, and I appreciate you sharing it for anybody else who might encounter that setting having been changed.  Hope you enjoy the tool. :)
      
      -Steve Cadwallader
  • cleanup unavailable for html/cshtml files
    2 Posts | Last post November 12, 2013
    • Hi - the "Cleanup Code" menu option (and keyboard binding) are unavailable in my .html/.cshtml files. The command is available for .cs and .js files. I've gone through the configuration and the HTML checkbox is checked in the File Types section. Any ideas why this command is being disabled for these files? I'm using VS 2013.
    • There is a known issue with Visual Studio's devenv.exe.config file that I'm working with Microsoft to get resolved.  The net effect is that the cleanup commands invoked from the solution explorer will not work, but you should still be able to cleanup files that are open as document tabs.  Please follow through our BitBucket issue to track status and vote up the backing Microsoft connect issue, as well as view a workaround: https://bitbucket.org/s_cadwallader/codemaid/issue/220/vs2013-cleanup-all-code-shows-error
  • Bypass code-cleaning for some classes
    3 Posts | Last post November 11, 2013
    • Hello,
      
      Is there any way to bypass code cleaning for a class or a region?
      For example, in my DemoCode.cs, there are 3 classes: MyControl, MyEntity and MyHelper. I don't want  MyEntity to be sorted when doing code cleaning.
      Another example, in MyControl class, there are some functions in a #region block that I don't want them be sorted.
      
      Thank you for reply.
    • Hi Chris -
      
      No, currently reorganization runs on the entire file.  In the case of your three classes in one file I would recommend separating the classes each to their own file as good practice and an easy workaround.  However skipping a region would be a little trickier without utilizing partial classes.  Is it a standard region that you would always want to skip, or just a one-time example?  If you have some ideas about a feature request please start the conversation on the Trello backlog here: https://trello.com/b/VVxVhbQv/future
      
      Hope it helps,
      -Steve Cadwallader
    • Yeah, partial class is a VERY good idea!
      And I'll separate classes into different files.
      Thank you very much!
  • Sorting rules for "usings"
    3 Posts | Last post October 28, 2013
    • Hello,
      
      In our team we made it mandatory to use CodeMaid, but the sorting order rules for using statements differ across team members. For some it is correct - System usings go first, but for others they get sorted alphabetically regardless being System imports or not. We didn't find any configuration setting that would affect this.
      
      Is this setting hidden in some config file?
      Thank you for reply.
    • Hi Maynard -
      
      I encountered that as well with my own team.  There is a setting for this within Visual Studio's Options under Text Editor->C#->Advanced->"Place 'System' directives first when sorting usings"
      
      This option used to be enabled by default in VS2010 and earlier, but Microsoft changed it to be disabled by default in VS2012 and later due to Windows Store apps using the Windows.* namespace.
      
      A couple useful links:
      http://stackoverflow.com/questions/12715340/using-directives-sorted-in-wrong-order
      https://connect.microsoft.com/VisualStudio/feedback/details/775702/organize-usings-no-longer-puts-system-references-first-bug-or-feature-change
      
      Hope it helps, :)
      -Steve Cadwallader
    • Thank you, Steve. Changing this setting did the work ;).
  • How to setup with VS2008
    2 Posts | Last post October 24, 2013
    • I have downloaded the CodeMaid_v0.6.2.vsix would you please tell me how to setup inside visual studio 2008
      thanks in advance
    • Hi Zubayba -
      
      The current version of CodeMaid no longer supports Visual Studio 2005 or Visual Studio 2008.  The last version of CodeMaid that does support those versions is v0.4.3 which can be downloaded from here: https://bitbucket.org/s_cadwallader/codemaid/downloads/CodeMaid_v0.4.3.msi
      
      Hope it helps,
      -Steve Cadwallader
  • Format Comments is Broken?
    2 Posts | Last post October 19, 2013
    • I downloaded this tonight and installed it on a new machine with VS2010 -- I really like the "Format comments during cleanup, Wrap comments at column" option -- but it's disabled, and there's no way to make it turn on.  What gives?
      
      Also, completely different issue with the same feature: in the version of Code Maid installed on my home machine that I downloaded last month, the "wrap comments at column" feature was deleting the preceding white space from the first line of a block of comments.  It was very annoying.  I could do a reformat of the document to realign the comments -- but even with the checkbox "Run format document" checked, it didn't fix the issue when I ran CodeMaid clean (was the format document being run before the format comments?  Seems to me that switching the order those items are called in would fix that issue.)
      
    • Comment formatting support is currently only available in VS2012 and higher.  There is a card in the backlog here to add support for VS2010 if you would like to vote it up/track progress: https://trello.com/c/QylslKhh
      
      There are a few known issues with comment formatting which is a new feature.  You can track them and/or report them if not already present on BitBucket (https://bitbucket.org/s_cadwallader/codemaid/issues?status=new&status=open .  Additionally you can download the latest alpha releases which contain some fixes.
  • Dark Theme Issues
    2 Posts | Last post September 11, 2013
    • Setting the Display Theme to dark seems to only be partially implemented.  
      Certain portions of the window are in a dark theme, but everything else is light grey on white, making it unreadable.  
      
      You can see an example of how it displays here:
      http://imgur.com/D3vZIZd
    • Thanks for reporting the issue.  I am unable to reproduce.  Will you file a bug on BitBucket including details like an exported copy of your settings, what version of Visual Studio you are using and which Visual Studio theme you are using?
      
      https://bitbucket.org/s_cadwallader/codemaid/issues
  • StyleCop
    2 Posts | Last post August 29, 2013
    • Do you have plans to add additional StyleCop rules to the reorganize method?  Personally I would like to have it move using directives inside the namespace and add the file copyright XML that is required by StyleCop.
      
      It would also be nice to have your extension turn on stylecop on a project so I do not have to edit the csproj file directly.
      
      Overall I love it though.
    • Glad to hear you love it. :)  Please check out the product backlog on Trello to vote/comment/suggest new features:
      
      https://trello.com/b/VVxVhbQv/future
      
      Some of your suggestions are already present:
      https://trello.com/c/CLRxsIyc
      https://trello.com/c/mAi1r86w
  • Would like to align assignment statements
    2 Posts | Last post August 08, 2013
    • Just a suggestion, but it would be nice to be able to select a set of assignment statements and have all the "right side" values be aligned.
    • Thanks for the suggestion.  I think there is already another VS extension that is focused on statement alignment - check out: http://visualstudiogallery.msdn.microsoft.com/7179e851-a263-44b7-a177-1d31e33c84fd
  • Why is Format Comment disabled
    2 Posts | Last post August 08, 2013
    • Why is the Format Comment disabled in my installation?
    • The new Format Comment functionality currently only supports VS2012 and higher.  There is a backlog card to add support for VS2010 here: https://trello.com/c/QylslKhh/115-add-comment-formatting-support-to-vs2010
31 - 40 of 113 Items