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.

(199) Review
Visual Studio
2015, 2013, 2012, 2010
Download (578,011)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (199)
Q and A (152)
Sign in to write a review
Sort by:

by Alex from Russia | at 6:22 AM

Perfect! A whole bunch of useful commands! And unlike ReSharper, it doesn't override native settings, which I've already customized.

by João BP | Tue 12:42 PM

by drventure | September 17 2015

Very nice add in for VS2013.

The Code Spade tool alone is worth the download.

by MujkicHaris | September 10 2015

Useful, time-saving and powerful.
Thank you so much for your hard work and dedication, developer!

by FernandoBraz | September 01 2015

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

Steve Cadwallader September 01 2015
| Edit |

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 |

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.

Steve Cadwallader July 26 2015
| Edit |

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 |

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 |

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:

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 |

That's great to hear, thanks! :)

by VisualNewbieVisual | May 20 2015

very useful Tools

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

  • Install on VS2013 Express
    4 Posts | Last post November 27, 2014
    • Hi, is it possible to install CM on VS 2013 Express for Desktop?
    • No, unfortunately it is not.  Microsoft does not allow for any 3rd party extensions with the express edition of Visual Studio.
    • However, the new VS Community Edition does! All the features of VS 2013 Professional for free:
    • Exactly!  And CodeMaid tested and approved:
  • Make sure file ends with blank line?
    4 Posts | Last post November 21, 2014
    • I've been using this extension when writing C++ code and it is really excellent.  Would it be possible to add an option to force a file to end with a new line (essentially last line is blank)? Some compilers don't like it and will actually generate warnings if you don't end the file with a newline.
    • That's a feature request that's been gaining in popularity - check it out here:
    • Spoiler, just finished implementation and will be in this weekend's release. ;)
    • That is awesome!  Thanks for the great (and fast) work.
  • Option to skip removing blank line cursor is on?
    2 Posts | Last post November 18, 2014
    • I often write a block of code and then Ctrl+S before continuing to the next block. At this point my cursor is usually on a (double) blank line ready to begin writing again. 
      Unfortunately though, when the code is cleaned up on save the cursor is moved as the line is deleted. Is there any way to prevent this? I really like the format on save and cleaning up of blank lines (along with so many other features!!) so I don't want to completely turn them off.
    • I'm glad you really like the tool. :)
      There isn't currently a way to do that.  There is a card in the backlog for that feature that you can track/vote/comment on here:
  • Protecting a struct ( or part of a struct) from reordering.
    2 Posts | Last post October 14, 2014
    •  I have a few structures that represent the specific layout of data. The order of fields is important. I have not found a way to stop CodeMaid from reordering them.
      Is there one?
    • Yes, you could decorate the structure with an attribute indicating that the order of fields is important.  CodeMaid looks for and will ignore members that are decorated with either the StructLayout attribute or the ComImport attribute.
  • CodeMaid does not start
    3 Posts | Last post October 02, 2014
    • I install CodeMaid on two different computers but when I restart VS 2010, I get an error message :
      The most disturbing thing is that I installed version 0.7.3 on another computer some months ago and had no problem.
      I really do not know what to do. Any help would be very appreciated. 
    • As of CodeMaid v0.7.4, .NET 4.5 is required on the machine.  It did not get correctly marked in the installer so the error message is not very helpful.  Do you have .NET 4.5 installed?
      There are some more details here, including a link to the older installer:
    • Thank you for your quick answer.
      It is exactly as you said and version 0.7.3 does perfectly the job.
  • 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.
      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:
      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 ?
    • 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?
      -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:  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.
    • 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?
      -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:
  • 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.
    • Hi Marcus -
      Very glad to hear you love it. :)
      Your first suggestion is already present on the public backlog here:
      Your second suggestion I have added here:
      Please visit to vote them up and add any other comments.
      -Steve Cadwallader
31 - 40 of 152 Items