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.

(171) Review
Visual Studio
2013, 2012, 2010, 14
Download (488,321)
3/21/2015
0.7.6
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (171)
Q and A (130)
Sign in to write a review
Sort by:

by mwbrady68 | April 05 2014

by honsinger | March 31 2014

This is fantastic. Don't for one minute think it's just a pretty thing, for me it is a major productivity boost!

Thank you.

Steve Cadwallader April 01 2014
| Edit |
Delete

You're welcome - I'm happy to hear it is giving you a boost. :)

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

41 - 60 of 171 Items   
Sign in to start a discussion


  • Can not istall for VS2010
    5 Posts | Last post Thu 11:33 PM
    • Not allowing to be installed for VS2010. Gives and error 'The extension 'Code Maid' required a version of .NET framework that is not installed'
      
      Can any one help me with this.
      
      Thanks
    • CodeMaid requires .NET 4.5 or higher, which you can download here: http://www.microsoft.com/en-us/download/details.aspx?id=30653
    • I have installed Windows XP SP3 32bit.
      .NetFramevork 4.5 can not be installed on WindowsXP (Supported Operating System: Windows 7 Service Pack 1, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2, Windows Vista Service Pack 2). Where can I download a previous version CodeMaid.
    • https://github.com/codecadwallader/codemaid/releases/tag/v0.7.3
    • Yep, exactly - v0.7.3 was the last edition before the upgrade to .NET 4.5
      
      https://github.com/codecadwallader/codemaid/releases/tag/v0.7.3
  • Code reorganization for both C# and VB.NET
    2 Posts | Last post March 24, 2015
    • With upcoming VS2015 and Roslyn .NET Compiler Platform, there should be same possibilities for both C# and VB.NET.
      Do you plan implementing code reorganization for VB.NET using this?
    • Roslyn will definitely open some doors, but is a huge rewrite that will take some time.  I'm hopeful it will improve the VB API experience.
      
      VB code reorganization is in the backlog here: https://trello.com/c/TD0jaAab
  • Layout formatting for Python
    2 Posts | Last post March 18, 2015
    • Will you support for Python scripts layout formatting?
    • It isn't currently supported, but you're welcome to add suggestions on our public backlog here: https://trello.com/b/VVxVhbQv/backlog
  • Custom Region Names
    2 Posts | Last post February 18, 2015
    • Hi,
      Is it possible to customize the region names created by CodeMaid? I cannot find this capability. e.g. Rather than "Fields" something of our choosing.
    • Yes, go to CodeMaid -> Configuration -> Reorganizing -> Types.  You can drag to reorder, drag over to group, right click to split, and (most importantly) double-click to rename.
  • Trying to run it but fails with this errro - any ideas
    3 Posts | Last post February 11, 2015
    • "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.
    • this is on vs professional 2013 version 12.0.21005.1 REL
    • There was a known issue with the initial releases of VS2013 where the devenv.exe.config had an invalid entry for the LanguageService DLL that would cause that error.  They resolved it in VS2013 Update 2.  If you update to that version (or higher) that should help.
      
      More details here: https://bitbucket.org/s_cadwallader/codemaid/issue/220/vs2013-cleanup-all-code-shows-error
  • Error while cleaning file using
    2 Posts | Last post February 04, 2015
    • [CodeMaid Handled Exception 08:06:24 PM] Stopped cleaning 'SomeFile.cs': System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
         at EnvDTE80.DTE2.ExecuteCommand(String CommandName, String CommandArgs)
         at SteveCadwallader.CodeMaid.Logic.Cleaning.UsingStatementCleanupLogic.RemoveUnusedUsingStatements(TextDocument textDocument, Boolean isAutoSave)
         at SteveCadwallader.CodeMaid.Logic.Cleaning.CodeCleanupManager.RunCodeCleanupCSharp(Document document, Boolean isAutoSave)
         at SteveCadwallader.CodeMaid.Logic.Cleaning.CodeCleanupManager.<>c__DisplayClassb.<Cleanup>b__9()
         at SteveCadwallader.CodeMaid.Helpers.UndoTransactionHelper.Run(Func`1 undoConditions, Action tryAction, Action`1 catchAction)
      [CodeMaid Handled Exception 08:06:26 PM] Stopped cleaning 'httpactionresultexcentions.cs': System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
         at EnvDTE80.DTE2.ExecuteCommand(String CommandName, String CommandArgs)
         at SteveCadwallader.CodeMaid.Logic.Cleaning.UsingStatementCleanupLogic.RemoveUnusedUsingStatements(TextDocument textDocument, Boolean isAutoSave)
         at SteveCadwallader.CodeMaid.Logic.Cleaning.CodeCleanupManager.RunCodeCleanupCSharp(Document document, Boolean isAutoSave)
         at SteveCadwallader.CodeMaid.Logic.Cleaning.CodeCleanupManager.<>c__DisplayClassb.<Cleanup>b__9()
         at SteveCadwallader.CodeMaid.Helpers.UndoTransactionHelper.Run(Func`1 undoConditions, Action tryAction, Action`1 catchAction)
      
    • VS is throwing an error about removing unused using statements. 
      
      A few possible causes:
      - Code is not in a compilable state
      - ReSharper 9 (fixed in 9.0.1)
      
      For more support please open an issue on GitHub with a code excerpt. 
  • Won't install for 2013?
    2 Posts | Last post December 08, 2014
    • Hi!
      
      I have VS 2013, yet your add-on just won't install. I've downloaded it twice now, and it keeps saying 'no applicable version found' and then just exits. 
      
      Any ideas?
    • Are you using the express edition of VS2013?  If so you'll want to switch over to the community edition which supports extensions (more details here: http://www.codemaid.net/2014/11/14/visualstudio2013community/)
      
      If you're not using an express edition, can you please open an issue on GitHub (https://github.com/codecadwallader/codemaid/issues) including if you've been able to install the extension before, if you've been able to install it on other machines, and what other extensions you have installed?
  • Codemaid Extendion crashes VS when using Edit+Continue
    2 Posts | Last post December 04, 2014
    • Hi,
      I really like this Extendion, but for some reason my VS2013 always crashes when trying to apply changes as long as Code Maid is activated.
      When I deactivate Code Maid, then I can use Edit+Continue without problems.
      This doesn't seems to have anything to do with Formatting, since I saved the Changes before continue.
      This doesn't seems to be a Managed Exception
      I use VB.Net Projects, and have VS2013 + VS2015 preview installed.
    • Hi Alexander -
      
      I'm glad you really like CodeMaid. :)  That's peculiar behavior you are describing.  CodeMaid explicitly checks the IDE state and will not run if you are in debugging mode.  If you right click and look at the CodeMaid context options you will see cleanup is not available.
      
      I tried reproducing your issue with a simple VB "Hello World" type application but it did not exhibit any issue like you were describing.
      
      So we can get to the bottom of it, will you open an issue on GitHub (https://github.com/codecadwallader/codemaid/issues) with some steps to reproduce (e.g. this is what the code looks like, I break on this line, make this change and then continue causes the exception).
      
      Thanks for reporting the issue,
      -Steve Cadwallader
  • 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.
      
      http://visualstudiomagazine.com/articles/2014/05/21/no-extensions-for-visual-studio-express.aspx
    • However, the new VS Community Edition does! All the features of VS 2013 Professional for free: http://tinyurl.com/mxbh9wb
      
    • Exactly!  And CodeMaid tested and approved: http://www.codemaid.net/2014/11/14/visualstudio2013community/
  • 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: https://trello.com/c/o3lFZdXD
    • Spoiler, just finished implementation and will be in this weekend's release. ;)
    • That is awesome!  Thanks for the great (and fast) work.
1 - 10 of 130 Items