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.

(194) Review
Visual Studio
2015, 2013, 2012, 2010
Download (560,860)
8/8/2015
0.8.1
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (194)
Q and A (149)
Sign in to write a review
Sort by:

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

by Stevoisiak | November 02 2014

Awesome little program. Very helpful for cleaning up code.

Steve Cadwallader November 02 2014
| Edit |
Delete

Thank you, the positive feedback is a great booster. :)

by Josh Garverick | October 23 2014

I found this extension on a whim one day, and have to admit that it works quite well for tidying things up. I also like the method complexity analysis as well.

Steve Cadwallader October 26 2014
| Edit |
Delete

Thanks, glad you like it. :)

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

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


  • Function Parameter Indentation
    5 Posts | Last post August 22, 2015
    • Hi,
      I think this is a great tool, and special thanks to taking time to write it.
      
      Question:
      int func1(
        int32_t a,
        int32_t b);
      
      If I run CodeMaid becomes
      int func1(
      int32_t a,
      int32_t b);
      
      I.e. it looses indentation of the parameters, 
      How can I disable it?
      
      thanks.
      
    • Hi Sumonto -
      
      Thanks for your kind comments.
      
      I wasn't able to reproduce this, but I suspect it could be a similar issue to the other one you posted (see next reply to consolidate).
      
      Hope it helps,
      -Steve Cadwallader
    • Hi Steve,
      Thanks for your reply, however I could not find an option under 
      "Tools->Options->Text Editor->C/C++->Formatting->Spacing" to disable "
      To disable "function param indentation" issue?
      
      Is there any way you could help me more.
      
      thanks.
    • OK found it!
      Tools->Options->Text Editor->C/C++->Formatting->Indentation->In Existing code...
      Disable it.
    • Great, glad you found it and thanks for posting that for anybody else who might be looking for it.
  • Sorting methods alphabetically
    5 Posts | Last post August 21, 2015
    • Is there a way to just sort methods alphabetically regardless of access or type? I tried looking into Formatting but I need to either go with access before type or type before access. I want to ignore both type and access and just sort the entire thing by name.
    • Currently no, I don't think there's a configuration that would match your request.  You may make a feature request on the Trello backlog (https://trello.com/b/VVxVhbQv/backlog) or the code is open source if you would like to look to add it (https://github.com/codecadwallader/codemaid)
    • I see. Thanks for the response. Just posted on Trello :)
    • How do I uninstall it?
      
      Windows 10, it doesn't appear in the "Program and Features" section, I can't find any option to remove it in the settings from within VS. So?
    • Inside Visual Studio under Tools->Extensions and Updates where all extensions are listed is where you can uninstall.
  • Variable Declaration alignment
    2 Posts | Last post August 19, 2015
    • Hi,
      Is there a way to leave the variable declaration indentation un-touched.
      
      E.g.
      ShortType1   st1      = 0;
      LongLongType longtype = 0;
      
      Becomes
      ShortType1 st1 = 0;
      LongLongType longtype = 0;
      
      Is there a way to disable this?
      
      Thanks
      
      
    • CodeMaid invokes Visual Studio's native formatting, and then extends upon it.  The removal of spaces in variable declarations is done by Visual Studio's formatting, and you can see the same behavior if you invoke Edit->Advanced->Format Document.  You can tell CodeMaid not to invoke Visual Studio's native formatting at CodeMaid->Options->Visual Studio->"Run format document", but you would lose several other cleanup actions in the process.  You can also look for additional Visual Studio configuration options under Tools->Options->Text Editor->C/C++->Formatting->Spacing.
  • More code cleaning for VB.Net
    4 Posts | Last post August 17, 2015
    • First of all, I love your addon. It's great.
      
      My question: Is it possible to add the "Remove unused using statements"
      and "Sort using statements"(Imports) for Visual Basic .Net?
      
      regards
    • Thanks, I really appreciate hearing that. :)
      
      It should be possible.  I don't think there is an existing card in the backlog for that feature, would you like to add one?  https://trello.com/b/VVxVhbQv/backlog
    • I think, I don't have the permission to add a card to the list.
    • The very first card says "You can add comments to this card to request a new card". Please comment there. 
  • CodeMaid for Python
    2 Posts | Last post August 13, 2015
    • What is the chance the CodeMaid works with Python code?
      Visual Studio today already works with python code using Pytools (http://microsoft.github.io/PTVS/) and would be awesome if you cover it.
    • There is a card in our backlog to support Python here: https://trello.com/c/RcqeuQEi
      
      Please feel free to vote/comment on it.  The card also includes a link to the pull request showing how PHP support was added as an example for what it would take to add support for Python.
  • The Command to execute is not enabled.
    2 Posts | Last post August 11, 2015
    • I'm using VS Premium 2013, Update 5 and CodeMaid v 0.8.0.  Selecting the "Find In Solution Explorer" results in the exception message, "The Command to execute is not enabled."  How do I enable the Command?
    • Are you sure the currently active document exists within the solution?
      
      If you are still having issues, please open an issue on GitHub (https://github.com/codecadwallader/codemaid/issues), including information about what type of file you are trying to find (e.g. C#, VB, etc.)
  • CodeMaid Spade too slow to load
    2 Posts | Last post August 07, 2015
    • When opening large classes, say with 5k lines in it, spade may take more than a minute to load.
      Is it expected behavior? Most of the time, when opening a class you may need to user visual studio, but it hangs for that amount of time. Perhaps, if Spade would load asynchronouslly on background, might imnprove performance in this case.
      Additionally, it might check the cache first, and then load async. It will take about the same time to load, but will definitely avoind disrupting work. If you need to use it as soon as opening a class, you may just wait for it.
    • Spade does load asynchronously in the background.  Please check your settings at CodeMaid->Options->"Load models asynchronously".  This setting is on by default, but if it has been turned off then you would see the behavior you described.
      
      If you are still having an issue, please open an issue on GitHub here with more details (e.g. VS version, configuration settings): https://github.com/codecadwallader/codemaid/issues
  • got error when opening solution
    2 Posts | Last post August 05, 2015
    • I opening my solution while got alert message it says check ActiityLog.xml.
      The file content show as below.
      
      System.InvalidOperationException: Unexpected false at Roslyn.Utilities.Contract.ThrowIfFalse(Boolean condition, String message) at Microsoft.CodeAnalysis.Editor.Shared.Tagging.ProducerPopulatedTagSource`1.GetTagIntervalTreeForBuffer(ITextBuffer buffer) at Microsoft.CodeAnalysis.Editor.Shared.Tagging.AsynchronousTagger`1.GetTags(NormalizedSnapshotSpanCollection requestedSpans) at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__38.MoveNext()
    • We have been seeing that too with the VS2015 RC.  It's been reported, and we have a fix that will be coming out soon.  Details and workarounds here (spoiler: you can ignore that warning) https://github.com/codecadwallader/codemaid/issues/118
  • remove unused using statment
    3 Posts | Last post July 26, 2015
    • Hello first of all, I want to say thank you, I was using this extension for several years and it was great.
      
      BTW I just figure out lately that it is not removing the unused using statement, this is the first happened to me. so what i did is check the configuration. On the inside the Cleaning->Visual Studio the "Run remove unused using statements" option is check.
      
      I am using the codemaid 0.8.0 on VS2013 update 5
      
      Thank you
    • You're welcome, I'm glad you've been enjoying it.
      
      There is an additional clause for removal of unused using statements.  By default, it will skip running that operation during an automatic cleanup on save.  The reason for this is that when a build, triggers a save, which triggers a cleanup, in some scenarios it could cause Visual Studio to lock up.  This was mostly noticed with VS2012, but the default option has been kept the same.  If you manually invoke CodeMaid, then by default it will go ahead with removing the unused using statements.
      
      I hope that helps.  If it doesn't, can you please open an issue on GitHub along with a minimal code sample?  https://github.com/codecadwallader/codemaid/issues
    • Thank you so much
  • Happen error
    2 Posts | Last post July 19, 2015
    • When I use CodeMaid to load code And click "CodeMaid Spade".The IDE would send a error messagebox.
      My IDE is Visual Studio 2015 RC.And error log is
      http://sta.sh/01eobpsr8361
    • Thanks for reporting the issue.  I am seeing it as well, and have moved this to a GitHub issue here: https://github.com/codecadwallader/codemaid/issues/118
1 - 10 of 149 Items