CodeMaid

Free

CodeMaid is an open source Visual Studio extension to cleanup, dig through and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

(215) Review
Visual Studio
2015, 2013, 2012
Download (632,281)
11/21/2015
0.9.0
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (215)
Q and A (156)
Sign in to write a review
Sort by:

by Andrew - QLD, Brisbane | January 21 2016

Great tool. Easy. Simple. Never had any problems. Does exactly what you want it to.

Steve Cadwallader January 21 2016
| Edit |
Delete

Thanks, I appreciate hearing that. :)

by ReisorDev | January 14 2016

by FeydCron | January 12 2016

Could be a really helpful extension but I need to deactivate it since in VS2012 I recognized some (inacceptable) stability and performance issues:
* drastic decreasing of IntelliSense update speed
* sporadic hang of VS2012 during project reload after doing a TFS merge
* sporadic hang of VS2012 due to some "background task" which won't complete - Also seems to be related to IntelliSense updates

All these issues were gone after deactivation, so there definitely exists problem.

Steve Cadwallader January 12 2016
| Edit |
Delete

:( Really sad to hear you had a bad experience in VS2012. If you'd be interested in working through it together, it would be really helpful to open an issue on GitHub with additional information like what other tools/extensions you had installed, what project language you were using, etc.

by Zakhar Amirov | January 07 2016

Breaks Visual Studio 2015. Analyze stop working. Solution properties can be opened with Object reference not set error. Visual Studio randomly crashes on start and project open.
Nothing changed for almost half a year.

Steve Cadwallader January 07 2016
| Edit |
Delete

Sorry to hear you had a bad experience. Issues with details are welcome on GitHub to diagnose issues you are seeing. Our last major release was 6 weeks ago, not 6 months.

by Daniel Wilianto | January 06 2016

This is a marvelous extension that make my life as developer so much easier. It's embarassing that I only found it just now. Better late than never, huh.

Steve Cadwallader January 06 2016
| Edit |
Delete

Really glad to hear it's making things easier. :)

by Josh Quintus | December 29 2015

Just like a maid in real life, CodeMaid keeps your code clean and organized without you having to do anything.

Configuration is very easy.

Steve Cadwallader December 31 2015
| Edit |
Delete

Thanks, really appreciate the review. :) A simple configuration was one of our key original goals so it's awesome to hear that it's noticed. :)

by koblongata | December 18 2015

by Arley W. Schrock | December 12 2015

Awesome extension

by Just Karl | December 02 2015

I especially like the code cleaning and code reorganizing. I'm now digging into Spade (if you will forgive the pun)

Steve Cadwallader December 03 2015
| Edit |
Delete

Great, thanks for the feedback. :) Pun allowed. ;)

by Marcos Sousa da Silva | November 27 2015

Já se tornou imprescindível. Parabéns pelo trabalho, Steve!

by naviniea | November 23 2015

by Ruud Borst | November 03 2015

.

by alishahal | October 21 2015

I like codeMaid, it is very easy to use and helps a lot with cleaning the code.

by Deepak Bisht0555006 | October 14 2015

great tool for coders

by Keizo Imaizumi | October 09 2015

Very nice extension, but somehow it would only remove lines (extra line at the end of file, duplicate blank lines etc), but won't add padding lines nor add explicit visibility modifiers in my c++ code. The respective settings are all on. Reinstalling CodeMaid didn't help... Visual Studio Community 2015

Steve Cadwallader October 09 2015
| Edit |
Delete

Unfortunately the Visual Studio API for C++ is not as rich as other languages like C# so not all features are supported. We have been thinking about making a language/feature matrix to help make that more clear - sorry for the confusion!

by Andrew Sanostee | October 09 2015

by Alex from Russia | October 07 2015

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

Steve Cadwallader October 09 2015
| Edit |
Delete

Cool, glad to hear it is useful. :)

by João BP | October 06 2015

by drventure | September 17 2015

Very nice add in for VS2013.

The Code Spade tool alone is worth the download.

Steve Cadwallader October 09 2015
| Edit |
Delete

Glad to hear you like it. More Spade enhancements coming in the next major release! :)

by MujkicHaris | September 10 2015

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

Steve Cadwallader October 09 2015
| Edit |
Delete

You're very welcome! :)

1 - 20 of 215 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?
  • 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.
  • 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.
      
      .*\FileToExclude\.cs
      FileToExclude\.cs
      
      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: https://trello.com/c/PludijKv
      
      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.
31 - 40 of 156 Items