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 (474,238)
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


  • 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.
  • 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: https://trello.com/c/2IC3YRS9
  • 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.
      
      http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.structlayoutattribute(v=vs.100).aspx
      
      http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.comimportattribute(v=vs.100).aspx
  • 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 : https://app.box.com/s/7140v41rk1hh7x54tina
      
      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: https://github.com/codecadwallader/codemaid/issues/13
    • Thank you for your quick answer.
      It is exactly as you said and version 0.7.3 does perfectly the job.
1 - 10 of 127 Items