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,905)
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 sharethl | March 24 2014

by samaursa | March 23 2014

Wonderful extension! Thanks to Steve for this amazing piece of work. Pretty much stopped me from buying Visual Assist for VS 2013 (binded Spade to Alt+m and now I can navigate symbols in the file just like I do in VA).

Suggestion: Spade should have a search box where I can search all the symbols that it shows in the current file.

The rest of the functionality just keeps making this extension a must have. Works beautifully in our moderately sized codebase.

Steve Cadwallader March 24 2014
| Edit |
Delete

Very glad to hear you like it. :)

That request is in the backlog already and gaining popularity - vote it up here: https://trello.com/c/MVmS0Jd0

by CelPlusPlus | March 13 2014

Excellent extension - integrates well with resharper.

Features which I was looking for: Spade and Reorder. Really, really useful.

Steve Cadwallader March 14 2014
| Edit |
Delete

Thanks :) I'm a big fan of ReSharper so playing nicely with it is a must.

by Predrag Glumac | February 25 2014

by Donat Michal | February 23 2014

by mober | February 01 2014

One of the best free Visual Studio extensions!

by oviano | January 31 2014

Trying to use this with VB, but as someone else has written, doesn't insert spaces between functions.

Also, it would be nice to be able to insert spaces between if blocks.

Seems like a few things missing for VB then.

Steve Cadwallader February 01 2014
| Edit |
Delete

Thanks for the suggestions, I've added the blank lines for functions to the backlog - vote it up here: https://trello.com/c/7kfFrz0o

If block blank lines would require the Roslyn compiler (future Visual Studio release).

by Kent Foyer | January 31 2014

Great tool. However, it doesn't seem to format VB as well as C#. One thing I noticed is it does not add an empty line between functions. Running CodeMaid on the below will not add an empty line between Foo and Bar.

Public Class Class1
Public Function Foo() As Integer
Return 1
End Function
Public Function Bar() As Integer
Return 2
End Function
End Class

Steve Cadwallader February 01 2014
| Edit |
Delete

Thanks for the suggestion. You're right VB cleanup does not currently cover that scenario. I've added it to the feature backlog, vote it up! https://trello.com/c/7kfFrz0o

by Proco | January 27 2014

Excellent tool, helpfull when organizing code

by ybbozman | January 24 2014

Hi,
Great Extension.
By default, *.rc2 files should be excluded. If you remove the last CR/LF at the end of those files (ie if the file doesn't end with an empty line), the project doesn't compile anymore.
Fred

Steve Cadwallader January 25 2014
| Edit |
Delete

Thanks Fred, glad you like it.

I've put a card in the backlog with a question about if .rc files should also be excluded - please check out https://trello.com/c/cVlwfeM8

by Jan Van der Haegen | January 16 2014

How did I ever write code without this?
Woaaaah!
Thank you!

Steve Cadwallader January 17 2014
| Edit |
Delete

*grin* thanks! :)

by Patrick Sperneder | January 15 2014

This "great" plugin destroyed one week of work.
Im really angry, cleaning up singel files works good, but when it came to cleaning up the whole solution it is deleting whole files!
Big fat warning to everybody! DO NOT CLEAN THE WHOLE SOLUTION AS MENTIONED!

Steve Cadwallader January 15 2014
| Edit |
Delete

I'm very sorry to hear that happened to you. I have not heard of it happening before to anyone else, and I'd like to determine a root cause if you have any interest in pursuing it further. Please contact me directly via codemaid on gmail if you would like to discuss.

by Caino MDK | December 21 2013

Since the latest update Spade and Reorganize (And also the "add new line between Methods function) does not work in VS 2013 Ultimate anymore. :(

Steve Cadwallader December 21 2013
| Edit |
Delete

That's odd that you'd be seeing intermittent behavior like that. Have you tried the classic uninstall/reinstall technique? If that doesn't help please report some more details on BitBucket and we can take a look: https://bitbucket.org/s_cadwallader/codemaid/issues

by ScruffyDuck | December 19 2013

I have used CodeMaid on and off for a number of years and it is now installed in VS2013. I use the features constantly and find the Spade to be vital to my work!

Steve Cadwallader December 20 2013
| Edit |
Delete

Awesome - very glad to hear it! :)

by Scott Goodman | December 13 2013

Needs to NOT automatically scan my active file. This is a great way to lockup Visual Studio when I F12 into an LinqToSQL or EntityFramework code-gen'd file.

Steve Cadwallader December 14 2013
| Edit |
Delete

Thanks for the suggestion. There is an existing card in the backlog for this, please vote it up: https://trello.com/c/ha1vFRS7

by tevo | December 09 2013

CodeMaid does so many complex things so well that it seems simple. I don't ever want to use Visual Studio without it!

Steve Cadwallader December 10 2013
| Edit |
Delete

Thanks! :)

by Ravi M. Kaushika | December 03 2013

DISABLED for me in Visual Studio 2012 premium. Since this is the 1st time, i am usng it, i felt that i was making some mistakes. this tool has raving reviews and i am wondering why it is not working or disabled for me. any help would be appreciated. regards, Ravi.

Steve Cadwallader December 04 2013
| Edit |
Delete

Note: This was resolved in the Q&A section as a VS extension setting issue.

by Benaiah.John | November 29 2013

This is an awesome util. Thanks a lot Steve! Saved me a ton of precious time. :-)

I just wanted to bring to your notice a minor problem. When I Format the comments, it automatically messes up my copyright info at the top of the file. My company's copyright info normally follows a 3 line comment like:
// <copyright file="file.cs" company="MyCompany">
// Copyright (c) 2013 CompanyName. All rights reserved.
// </copyright>
// <summary>The class summary</summary>

But on formatting comments, it puts it all in just a single line (sometimes 2 lines). Is this intended or am I doing something wrong :^)

Steve Cadwallader November 29 2013
| Edit |
Delete

Really glad to hear you like it, you're welcome. :)

There are two kinds of comment formatting, traditional comments "//" and XML comment formating "///". It looks like you have XML tags within your copyright definition, but they aren't being marked with the triple slash syntax usually associated with XML comments. If you put the third slash in that will improve behavior. You will also want to mark 'copyright' as a major tag within CodeMaid's configuration (CodeMaid->Configuration->Cleaning->Comments) so that it will always keep new lines before and after.

Hope that helps. If you're still seeing an issue please post a code sample on BitBucket and I'll take a deeper look. :)

https://bitbucket.org/s_cadwallader/codemaid/issues

by Pankaj Nikam | November 16 2013

Just love this. Must have plugin for all :)

by tsaixiedan | November 15 2013

A BIG HELP!

21 - 40 of 149 Items   
Sign in to start a discussion


  • Customize font size
    7 Posts | Last post Sat 12:59 AM
    • 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.
  • Where do i report a bug ?
    3 Posts | Last post June 26, 2014
    • I believe I've found an issue, where do I report bugs? 
      
      The boards on Trello (which I also love) don't look like an appropriate place...
    • BitBucket is where the source code and issue tracker lives: https://bitbucket.org/s_cadwallader/codemaid/issues
      
      If you can include a code sample and what edition of VS that will be very helpful.
    • Issue posted at https://bitbucket.org/s_cadwallader/codemaid/issue/309/vs2013-update-2
  • reorganize code
    2 Posts | Last post June 20, 2014
    • Why doesn't this reorganize vb.net codes?
    • There hasn't been a lot of interest, but there is a card in the backlog you can vote up here: https://trello.com/c/TD0jaAab/141-reorganization-support-for-vb
1 - 10 of 115 Items