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.

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

by FernandoBraz | Tue 6:19 AM

Steve has made a wonderful work. Besides, it works perfectly with resharper.

Steve Cadwallader Tue 10:34 AM
| Edit |
Delete

Thank you. :) JetBrains provides us an open source license to use their tool during the development of CodeMaid, so we're more than happy to make sure we're very compatible together.

by nomen86 | August 26 2015

Nice extension, 5 stars for you CodeMaid.
Btw, does it have features to show how many reference I have on my method.
In VS 2013 when you write a method, a small link show on top of the method, tell us how many reference exist on that particular method. Here is the example :

3 references //this is what i mean.
public void ExampleMethod()
{
//some code here...!
}

Since I'm using Visual Studio 2012 Ultimate Edition (I don't want to upgrade to VS 2013 or VS 2015, because I'm still using Windows 7) that fitur is not available in Visual Studio 2012. Is there any extension or add-in so my VS 2012 could give me that fitur...?

Steve Cadwallader August 26 2015
| Edit |
Delete

I'm glad you like it.

The feature you're talking about is called CodeLens, and I haven't heard of anybody replicating it for VS2012.

by Sumonto | August 19 2015

Great handy tool!

by Ronan Phuc | August 12 2015

So amazing extension. Love it

by Akilram | August 02 2015

by dialexnunes | July 30 2015

by zeloran9 | July 24 2015

Excellent. Exactly what I was looking for.
The auto-formatting functionality removing extra new lines is awesome, and the VS default does not include that.
Thanks!

Steve Cadwallader July 26 2015
| Edit |
Delete

You're very welcome! :)

by HassanAli5502327 | July 22 2015

by Shaun Wilson [BC] | July 14 2015

by Akira Yamamoto | July 11 2015

by Kjetil Tonstad | June 24 2015

Very useful!

by Dylan777 | June 17 2015

Love this tool. Makes it so easy to keep code tidy. I really like the fast switch shortcut to switch between webpage and code behind files.

Thanks for your effort!

Steve Cadwallader June 18 2015
| Edit |
Delete

Awesome, thanks for the kind words. :)

by NirmanD | June 17 2015

Excellent tool

by lepine kong | June 06 2015

Could you fix bugs ? For example remove unused reference does not work like the native VS feature. It does not remove some references especially if reference is missing.

Steve Cadwallader June 07 2015
| Edit |
Delete

CodeMaid invokes the native VS remove unused references - they are the same feature.

If you have a specific bug you'd like for us to look into, please log it here: https://github.com/codecadwallader/codemaid/issues

by Susant sahu | May 23 2015

Excellent tool for code cleaning and formatting, i use it every time before checking in Code to TFS, Very simple to use, very effective.

Automatic Cleanup on Save option is really awesome.

Steve Cadwallader May 23 2015
| Edit |
Delete

That's great to hear, thanks! :)

by VisualNewbieVisual | May 20 2015

very useful Tools

by Adelost | May 17 2015

Excellent. If just "Reorganize Code" worked with C++ and sort import statements worked for C++ includes as well, that would have been super. But I still love it for the excellent outline view (CodeMaid Spade) and "Format Comment" has saved me a lot of time and made it more fun to document my code.

Steve Cadwallader May 21 2015
| Edit |
Delete

Glad you're enjoying it, and feel free to make suggestions on the public backlog here: https://trello.com/b/VVxVhbQv/backlog

by Rickysco | May 13 2015

Looking at all the reviews first. Will rate later. Rating 5 for now.

by Zodarion | May 12 2015

by Tagoma | April 23 2015

Excellent tool!

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


  • unnecessary indentation of a comment section
    2 Posts | Last post Mon 12:27 PM
    • Hi,
      I like the extension, but I noticed a strange cleaning-up that I don't know how to disable. If I have in my .h file in a cpp project the following simple code:
      
      /* Copyright (C) ...
       * Proprietary and confidential
       * Written by ...
       */
      
      #include "../Utils/ValidatedArticleLinks.h"
      
      /// //////////////////////
      /// TStarter
      class TStarter ...
      
      then cleaning up adds one space in the TStarter comment:
       /// //////////////////////
       /// TStarter
      class TStarter
      
      this has to do with the copyright section at the top, because if I remove it, there is no problem.
    • I'm glad to hear you like it.  Will you please open an issue on GitHub so we can look into that further?  https://github.com/codecadwallader/codemaid/issues
  • Why is "Clean Up Code" Menu inactive?
    2 Posts | Last post Sun 11:15 PM
    • I installed CodeMaid 0.8.1 under fresh installed Visual Studio 2015 but the menu "Clean Up Code" is greyed or inactive. The file is in the solution of course. And auto clean up on save seems doesn't work as well. But spade and other things are working  properly.
    • If Spade is able to load a document, then cleaning should(tm) work and be enabled as they share some common underlying infrastructure.
      
      You could try enabling diagnostics mode (CodeMaid->Options->Diagnostics mode) and then see what messages are posted to the Output tool window in Visual Studio.
      
      If that doesn't point out something obvious, please open an issue on GitHub so we can look into it further: https://github.com/codecadwallader/codemaid/issues
  • 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
1 - 10 of 151 Items