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.

(168) Review
Visual Studio
2013, 2012, 2010, 14
Download (473,596)
11/23/2014
0.7.5
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (168)
Q and A (127)
Sign in to write a review
Sort by:

by RaviShankark | February 23 2015

I am using this tool from past 1 year and it is very good and handy tool for developer.

by Ammar.Zaied | February 13 2015

Good work.

by Ray Cheng Ray Cheng | February 04 2015

CodeMaid sorts "using" directives, but StyleCop wants the "System" directives be listed first.

After running CodeMaid clean up, I got the following StyleCop warning.

"System using directives must be placed before all other using directives."

Steve Cadwallader February 05 2015
| Edit |
Delete

You can configure VS to place system directives first (old convention they've gone away from). It is in Tools->Options->Text Editor->C# and called "Place system directives first..."

Hope it helps.

by michal_bb | January 30 2015

A must have plugin for VS. I especially like the ability to go find an opened file in solution explorer, code cleanup, code reorganizing and showing progress in the taskbar. 5*****

Steve Cadwallader January 31 2015
| Edit |
Delete

Thanks! :)

by Steven Goodgrove | January 29 2015

by ErdincDogrul | January 27 2015

Awesome and perfect. thank you

Steve Cadwallader January 31 2015
| Edit |
Delete

You're very welcome! :)

by Michaël Polla | January 05 2015

This extension is really great ! I wish I'd known it before. For now I mostly used the cleanup functionality, and it's very useful. It already works well with Visual Studio 2015 (Preview). Thank you for this great work !
**
[FR] Je recommande cette extension, très pratique. J'ai pour l'instant surtout utilisé la fonction de "nettoyage" du code, qui apporte des modifications très appréciables. Fonctionne très bien avec Visual Studio 2015 (Preview).

Steve Cadwallader January 06 2015
| Edit |
Delete

You're very welcome! :)

by Yatajga | January 02 2015

Good tool.

by helixwmonkey | December 31 2014

Very nice tool. Just download and try and it amazes me~

Steve Cadwallader December 31 2014
| Edit |
Delete

Thanks! :)

by ytf1 | December 23 2014

a very good plugin,thanks

Steve Cadwallader December 23 2014
| Edit |
Delete

Glad you like it! :)

by Krzysztof Osowicki | December 18 2014

by PadamkNegi | December 06 2014

I love this plugin. i was using it with vs 2010 and it worked perfectly, but with vs 2013. It crashes my visual studio again and again. and corrupts my .aspx page (html). i don't know why.?? Please resolve this issue.

thank you

Steve Cadwallader December 06 2014
| Edit |
Delete

I'm glad you love the plugin, and sorry that you're encountering a difficulty. If you can open an issue on GitHub with some more details (e.g. code sample before and after) then I can look into it further.

https://github.com/codecadwallader/codemaid/issues

by ..walt | November 27 2014

It cleans, it organizes and it can call in the heavy movers (Resharper in my case). And Steve ... thanks for responding to so many people.

Steve Cadwallader November 27 2014
| Edit |
Delete

I'm glad you're enjoying it, thanks for the positive review. :)

by VikNet | November 22 2014

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! :)

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


  • Excluding Files and Directories from Cleaning
    4 Posts | Last post October 02, 2014
    • Hi Steve,
      
      I am using CodeMaid on a very large project and it is running out of memory when I get to large auto generated files. They are all CS file. I have tried to exclude these files with these regular expressions and the file name but neither works.
      
      .*\FileToExclude\.cs
      FileToExclude\.cs
      
      What is the correct regular expression to accomplish this? Can entire directories be excluded also?
    • The second example is correct syntax.  Have you made sure it is on a separate line from other exclusion lines?
      
      Entire directories cannot currently be excluded, but it's in the backlog here: https://trello.com/c/PludijKv
      
      If you're still having problems, please open an issue on GitHub with an export of your CodeMaid settings so we can figure it out together.
    • Yes, they are on separate lines. The two expressions I mentioned earlier was what I tried to exclude a file by name. I tried using them each separately and together but did not get the result I wanted.
      
      I can still use CodeMaid by explicitly selecting the files to clean but will not be able to use it on the entire solution for now. When support is added for directory exclusion it should work for me since all the files I want to exclude are in the same directory.
    • Thank you for your quick answer.
      It is exactly as you said and version 0.7.3 does perfectly the job.
  • CodeMaid Spade does not seem to work on shared projects
    2 Posts | Last post September 23, 2014
    • Hi Steve,
      Just installed CodeMaid in VS2013 update3. It looks very nice but when I open a C# file from a shared project (As in universal apps) the codemaid spade window stays empty, opening files in regular projects works fine. I am missing something ?
      
      Lex
      
    • Hi Lex -
      
      Have you installed CodeMaid v0.7.4?  That version contained a fix specifically for shared projects.  If you have that version installed and are still seeing an issue will you open a GitHub issue with a code sample?
      
      https://github.com/codecadwallader/codemaid/issues
      
      Thanks,
      -Steve Cadwallader
  • Customize font size
    7 Posts | Last post September 20, 2014
    • Hi Steve,
      Thanks for the great addin!
      Could you add a way to customize font size for Spade window?
    • You're welcome - glad you like it!
      
      Spade supports zooming - you can hold down the Ctrl-key and use the mouse wheel to zoom-in or zoom-out. :)  Holding down the Ctrl-key and clicking the middle button will reset the zoom to 100%.
    • True that! That was what I tried at first.
      Turns out reducing zoom level messes up font rendering, give it a try, or I can send you a screenshot if you like.
    • Sure if you would like to send a screenshot that would be good (codemaid on gmail).  Since it is a full window scale transform vs. a font size change the appearance may not remain as crisp depending on the font.
    • Sent!
    • "Depending on font"
      I tried several fonts, but all fonts look blurry when the Spade is zoomed. How about just letting us to choose the font size? Currently it is too small.
    • There is a card in the backlog for that here: https://trello.com/c/eXWy1DMA  Please feel free to visit and vote-up or comment further there.
  • Cleanup and Collapse missing from Solution Explorer
    6 Posts | Last post September 08, 2014
    • Hi,
      
      I seem to have lost the Cleanup and Collapse buttons in the Solution Explorer window. Is there an option to switch them back on? I recently installed VS2013 Update 3 - but I can't be 100% sure that this removed them.
      
      Thanks,
      
      Ben
    • Hi Ben -
      
      They were deliberately removed in the v0.7.3 update as Microsoft has a native collapse all button already in the solution explorer toolbar from VS2012 and up.  There's been a number of people asking that question though so I'll roll back that change and re-introduce them in the next release.
      
      As a VS2013 user, were you aware of the native collapse button?  Do you use the cleanup all code button regularly that it's easier to have it present there vs. the menu?
      
      Thanks,
      -Steve Cadwallader
    • Doh! No, I didn't notice the native Collapse button!
      
      I tend to CleanUp on Save rather than use CleanUp All option - so it was just Collapse that I was missing really. Don't reintroduce them on my account...
      
      Thanks for your help Steve - CodeMaid is really useful!
    • No worries, thanks for the details.  It's mostly for VS2010 users but I was curious if there were other reasons they would still be helpful in VS2013.
      
      Really glad to hear you're finding CodeMaid useful. :)
    • There is a way to obtain a past version from CodeMaid (before v0.7.3)?
      
      By some reasons directly related to the project where I'm working, I cannot update .NET Framework to v4.5, being limited to use v4.0 (and prior), and I really love/need the collapse function (*badum tss*).
      
      Thanks in advance.
    • v0.7.4 was the first version that requires .NET 4.5.  You can download v0.7.3 which does not require .NET 4.5 from GitHub here: https://github.com/codecadwallader/codemaid/releases/tag/v0.7.3
  • Spade Configuration
    2 Posts | Last post September 02, 2014
    • Hello, i love that tool. Two requests :
      
      1. Would it be possible to add configuration of spade default layout, because i had always to re-select alphabetically which i use in general.
      
      2. I use the alphabetically mainly because i don't want to see the region information in the list, would it be possible to deactivate 'region' view in the layouts.
      
      Thanks,
      regards
      Marcus
      
    • Hi Marcus -
      
      Very glad to hear you love it. :)
      
      Your first suggestion is already present on the public backlog here: https://trello.com/c/ZvCliKnH
      
      Your second suggestion I have added here: https://trello.com/c/1WTL58Lb
      
      Please visit to vote them up and add any other comments.
      
      Thanks!
      -Steve Cadwallader
  • Visual Studio 2010
    2 Posts | Last post August 28, 2014
    • Is this extension no longer supported in Visual Studio 2010? I cannot get the menu bar item to show.
    • The latest version (v0.7.4) requires .NET 4.5.  That wasn't marked in the installer so it didn't prompt to install it like it should.
      
      If you can't install .NET 4.5 for some reason, the previous version (v0.7.3) is available on GitHub.
  • Running other 3rd-party cleaner
    2 Posts | Last post August 23, 2014
    • Hi,
      GREAT extension. I noticed the possibility to run the "silent cleanup" of the ReSharper extension. It would be awesome if one could just give CodeMaid a shortcut, which it should perform before or after the cleanup. Maybe I could trigger a silent cleanup of the Telerik-Extension "JustCode" as well?
      
      Marc
      
    • Hi Marc -
      
      Glad you like it, and that's a great suggestion - thank you!  :)  I've added it to the backlog here for comments/voting: https://trello.com/c/rLdN2VeT
      
      -Steve Cadwallader
  • Switching not only file extensions
    2 Posts | Last post August 05, 2014
    • Hi there,
      it would be great to configure the switching between defined classes matched by regex or something. In our case we have something like FooService.cs that is thightly bound to FooServiceContract.cs. It would be nice to define some sort of switching between these two.
      
      Thanks, 
      Malte
    • Thanks for the suggestion.  Added to the public backlog on Trello for voting/comments: https://trello.com/c/14TU2J1g
  • Spade Background Color
    4 Posts | Last post July 20, 2014
    • Is there a way to change the toolwindow backcolor of Spade? I just want to match it with my other windows. I'm using the color theme editor extension.
    • Currently CodeMaid has two themes (dark and light) to match the Visual Studio themes.  The tool window backgrounds are #FF252526 and #FFF6F6F6 respectively.  By default CodeMaid will auto-detect the IDE tool window background color and choose one of the two themes from there.
      
      Feature requests can be added to the backlog here: https://trello.com/b/VVxVhbQv/backlog
      
      Or the relevant source code is available here:
      https://bitbucket.org/s_cadwallader/codemaid/src/844a130514d96981bc8d0c21f01718d9242e5249/CodeMaid/UI/ThemeManager.cs?at=default
      
      Hope it helps.
    • Thanks! just edited the code and it worked perfectly. :)
    • Cool, glad to hear it. :)
      
      We've moved over to GitHub this weekend, so if you've got something you think is generic enough you'd like to include in the main code line you can submit a pull request there.  If not no worries too.
  • Remove whitespace on blank line.
    3 Posts | Last post July 15, 2014
    • I have "Remove end of line whitespace" checked, but that option doesn't delete whitespace that exists on a blank line.  (i.e. a line with whitespace only.)  Is there a way to tell CodeMaid that I want ALL trailing whitespace to be removed?  CodeMaid version is 0.7.1.  Visual Studio version is Professional 2012 Update 4.
    • Nevermind.  It's working correctly, it just doesn't look like it is...
    • Glad you figured it out.  Visual Studio does have the concept of a virtual cursor position - that's how the next line of code looks to be indented to the same level before you start writing anything.  If you press the 'end' key you'll see it toggle between the virtual end of line and actual end of line, or you can enable viewing whitspace.
11 - 20 of 127 Items