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, JavaScript and TypeScript coding.

(141) Review
Visual Studio
2013, 2012, 2010
Download (367,570)
7/20/2014
0.7.3
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (141)
Q and A (110)
Sign in to write a review
Sort by:

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!

by Senthil Ramanathan | November 12 2013

Just learnt about this tool today reading a SO answer. Awesome utility to reformat a huge bunch of files that I had to import from another system. And managed to get it done in all of 2 mins.. Great work.

Steve Cadwallader November 12 2013
| Edit |
Delete

Thanks! :)

by DaFlame | October 25 2013

I have to reiterate a point brought up by a previous reviewer.

I like cleaning up the code to add the this keyword in front of class members and methods. It helps to make the code more unified because you NEED to use the this keyword when applying extension methods to the local class. I agree it is not needed in most cases, but it does clarify the target of the request.

StyleCop has this rule for a good reason: code transparency and consistency.
Please support this in CodeMaid. it is the last item only thing it doesn't do for me.

Only 4 stars until it is supported.

Steve Cadwallader October 26 2013
| Edit |
Delete

Thanks for the suggestion. Personally I always remove them, but there's arguments for both directions.

To implement adding/removing "this." requires a richer code model than what is currently exposed through the Visual Studio API. The Roslyn project promises to expose a code model rich enough to add this kind of functionality in the future, but it has not been released. To get that behavior today you'll need to use a commercial tool (e.g. ReSharper) that has its own static compilation engine.

by IsenGrim 613 | October 23 2013

You need a new function:
Cleanup all checked out.

Steve Cadwallader October 24 2013
| Edit |
Delete

Good idea, thanks. :) Added to the backlog: https://trello.com/c/wKayMxcc

by UldisV | September 17 2013

Perfect tool.
A must if you want to get quick overview of your class.

by Michal Smola | August 29 2013

by Ovidiu Ionescu | August 17 2013

by Gil Yoder | August 06 2013

Steve has done a great job with this free utility, and supports it as if he was getting rich from it. Thanks Steve.

Steve Cadwallader August 08 2013
| Edit |
Delete

Rich on ego, Thanks Gil. :)

by Mike Paterson | July 19 2013

I use Code Maid on a daily basis. Really great job! You should setup a place where we can donate.

$20 donated!

Steve Cadwallader July 19 2013
| Edit |
Delete

That was very generous - thank you! :)

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


  • Spade Background Color
    4 Posts | Last post Sun 3:18 PM
    • 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
  • hi used variables are not highlighted
    2 Posts | Last post June 10, 2014
    • hi used variables are not highlighted after installing this extension or do we need any further settings for this.?
    • CodeMaid shouldn't(tm) be related to any settings about highlighting unused variables.  I don't know that Visual Studio does that by default, I think it comes from other third party extensions like ReSharper.
  • CodeMaid settings get reset every week or two.
    6 Posts | Last post May 14, 2014
    • This is really frustrating.  Every couple of weeks, my CodeMaid settings get set back to defaults.
      
      I don't want the defaults, that's why I changed my settings.
    • Sorry to hear it.  I haven't seen that issue or had any other users report it.  Have you noticed any patterns about when your settings are getting reset, such as it happens after performing an operation in another extension?  My best guess would be that the shared space where user preferences are stored are getting overwritten.
      
      As a workaround until we can identify the source of the reset, I'd recommend exporting your settings when they're valid so you can quickly re-import them once you've noticed they have been reset.
    • I have the same problem, just today! And before I found the codemaid settings lost, I made an update of Visual Studio 2013 (Update 1). Thus, although I can not say this for sure, the lost settings may correspond to updates made in VisualStudio.
    • Thanks for the details.  Has anybody else noticed a similar issue when applying the VS2013 Update 1?
    • I can now say for sure that the same problem also happens after updating to VS 2013 Update 2. All Settings were lost again.
    • Thanks for reporting it, and I saw the same thing occur with VS2013 Update 2.  Card created in the backlog here: https://trello.com/c/Iwgn3De3
  • can't find Microsoft.VisualStudio.Package.LanguageService.10.0
    2 Posts | Last post May 09, 2014
    • When i right click a solution and click 'clean all code...' i get below error message. This is in VS2013 update 1
      
      ---------------------------
      Microsoft Visual Studio
      ---------------------------
      Could not load file or assembly 'Microsoft.VisualStudio.Package.LanguageService.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
      ---------------------------
      OK   
      ---------------------------
      
    • This is a known Microsoft bug in VS2013.  They've promised to fix it in VS2013 Update 2.
      
      Please follow through this issue for details on a workaround: https://bitbucket.org/s_cadwallader/codemaid/issue/220/vs2013-cleanup-all-code-shows-error
  • My CodeMaid isn't effect in javascript file
    2 Posts | Last post May 02, 2014
    • the code map is ok in .cs file, but it is not effect in js file.
      ps.when I open a project,the spade show it refresh the js file,but then it show nothing ,my IDE is vs2013 
    • VS does not have a code model available through its API for JavaScript files.  So what you are seeing is expected - Spade does support C# but does not support JavaScript.
  • visual studio stop running after use codemaid
    2 Posts | Last post March 14, 2014
    • After install codemaid, i'm using visual studio 2010, and use the extension my visual studio stop running and  when i start again, i got the same result. I have uninstalled the codemaid extensioni and there is not any problem again. Do you have some setting or patch for this issue?
    • I'm not sure if this will help the problem you are describing, but there is a known issue that some users have encountered with multithreading performance.  You can disable that optimization through CodeMaid->Configuration->General->"Multithread options".  This is the default in the latest BETA release.
      
      If that isn't the problem, please open an issue on BitBucket (https://bitbucket.org/s_cadwallader/codemaid/issues) including some details such as what you are doing when the error occurs, any relevant screenshots, and if the issue occurs consistently or erratically.
  • CodeMaid Window
    2 Posts | Last post March 08, 2014
    • My codemaid window was closed. Now I can't find how to re-open it.  Am I missing something simple?
    • The Spade tool window can be opened by selecting the CodeMaid menu across the top and then selecting the Spade menu item.
1 - 10 of 110 Items