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.

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

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 |
Delete

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 |
Delete

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: https://github.com/codecadwallader/codemaid/issues

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 |
Delete

That's great to hear, thanks! :)

by VisualNewbieVisual | May 20 2015

very useful Tools

by Adelost | May 17 2015

Excellent. If just "Reorganize Code" worked with C++ and sort import statements worked for C++ includes as well, that would have been super. But I still love it for the excellent outline view (CodeMaid Spade) and "Format Comment" has saved me a lot of time and made it more fun to document my code.

Steve Cadwallader May 21 2015
| Edit |
Delete

Glad you're enjoying it, and feel free to make suggestions on the public backlog here: https://trello.com/b/VVxVhbQv/backlog

by Rickysco | May 13 2015

Looking at all the reviews first. Will rate later. Rating 5 for now.

by Zodarion | May 12 2015

by Tagoma | April 23 2015

Excellent tool!

by QuYong | April 11 2015

by BillW33 | April 09 2015

A very well written and very helpful tool.

Steve Cadwallader April 10 2015
| Edit |
Delete

Thanks :)

by JPDavinci | April 03 2015

Steve;
I use this tool every day. Just made a small donation, but won't forget about you in future as I know you work hard on this stuff. Simply an excellent tool all around!

Steve Cadwallader April 04 2015
| Edit |
Delete

That was very generous of you and it is much appreciated. Keep enjoying the tool, more to come! :)

by dwight12 | April 03 2015

I have few extensions and addins in Visual Studio.

This is one my must-haves.

I love the ability to clean entire solutions.

Steve Cadwallader April 04 2015
| Edit |
Delete

Wonderful, glad to hear it! :)

by probackpacker | March 23 2015

by Ondřej | March 13 2015

Unfortunately does not support Visual Basic .NET code, otherwise 5/5.

Steve Cadwallader March 15 2015
| Edit |
Delete

Thanks for the feedback. We do support VB, but you're very right that some of the features are limited. Reorganization for example we've tried to implement in the past but the VS API's for VB didn't work out like the C# ones.

If there's any specific feature you're missing, feel free to point it out in the backlog - or it may be something already there to vote up: https://trello.com/b/VVxVhbQv/backlog

by Patrick Smacchia [NDepend] | March 08 2015

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.

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


  • Can not istall for VS2010
    5 Posts | Last post March 26, 2015
    • 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?
  • 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
11 - 20 of 139 Items