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.

(135) Review
Visual Studio
2013, 2012, 2010
Download (315,476)
3/22/2014
0.7.1
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (135)
Q and A (103)
Sign in to write a review
Sort by:

by Brice Williams | Mon 5:00 PM

Excellent Visual Studio extension. Can't wait to see upcoming new features.

Steve Cadwallader Mon 11:59 PM
| Edit |
Delete

Thanks. :) For spoiler's about what's coming next, vote/comment on our public backlog here: https://trello.com/b/VVxVhbQv/backlog

by Lukasz Ciastko | Fri 10:23 PM

I used to use CodeMain, but it's not compatible with the latest Windows Universal Apps. It's impossible to clean up classes inside a shared folder.

Steve Cadwallader Sun 11:32 AM
| Edit |
Delete

If you'd like to look into it together, please open an issue on BitBucket here: https://bitbucket.org/s_cadwallader/codemaid/issues

by user rob | April 10 2014

Code Maid persistently crashed the GUI for the project I maintain without me using any code maid features. I guess its for hobby use only.
Using C++ VS2010 Vista.

The loaded solution consists of 8 legacy programs with origins in VMS consisting mostly of C with Win API with some newer simple C++.

The VS GUI crashed in the following instances: rearranging window positions, selecting class view and while browsing the code before I un-installed it. After un-installing and before installing of code maid there were no VS crashes. I have been using VS 2010 to maintain this code since 2010 without any GUI crashes.

Steve Cadwallader Fri 12:24 AM
| Edit |
Delete

Sorry that you had a bad experience.

There are some fixes for VS2010 available in the latest beta. Message me through here for more details: http://www.codemaid.net/contact/

by digovc | April 07 2014

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! :)

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


  • 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.
  • Out of memory
    2 Posts | Last post February 27, 2014
    • A project i'm on has 1400 clean'able code files associated with it, and so I was expecting it to take a while to run.  I came back a while later to find it ran out of memory causing VS to crash after around 1000 files had been sifted.  I re-ran the clean on the solution and the problem didn't appear again.
      
      Does this mean individual file changes are being stored in memory?  I didn't close anything down between the two run-throughs so I don't think more memory was in use the first or second time.
      
      Any info on how to prevent this from happening in the future would help.  This was on a laptop with 8gb ram with other development software running (sql server etc.)
    • Hi Phil_O -
      
      With the v0.7.0 release we confirmed that CodeMaid has zero object growth using the Red Gate ANTS Memory Profiler during batch cleanup operations.  The overall memory demands of Visual Studio will increase though the more you open documents.  The same behavior can be seen if you were to manually open each of those files and close them - Visual Studio's memory footprint continues to increase in size over time.
      
      Unfortunately I don't have a great suggestion currently, other than to do smaller cleanups (e.g. select half the projects and clean them, then select the other half later).
      
      Sorry I don't have a better solution.  If anybody else has any recommendations on limiting the Visual Studio memory footprint I'd appreciate it.
      
      -Steve Cadwallader
  • Facebook React JSX support
    2 Posts | Last post February 24, 2014
    • When do you plan to add JSX support?
    • It's not on the radar, but I've added it to the backlog for voting/comments here: https://trello.com/c/VxCKZLop
  • Can't exclude files in a folder of a project
    2 Posts | Last post February 24, 2014
    • We have flat file specification classes which need to have private "filler" properties interspersed with the public properties, so we want to not run CodeMaid on files in a particular folder.  I tried with regex to exclude them, but I believe the problem is the regex is tested against the document.name, which excludes the path.  Would it be possible to enhance the regex testing to include the folder path inside the project?  For now I'll have to turn off CodeMaid, check these back in and lock them so no one inadvertently changes them with a cleanup.
      
      Regards,
      Chris Rock
    • Hi Chris -
      
      Makes sense, and it should largely be straight forward.  I saw you've forked the code base, so hopefully you've found your way to CodeCleanupAvailabilityLogic::IsFileNameExcludedByOptions.  This is called from two locations, once for a Document object (an open file) and once for a ProjectItem object (i.e. from the solution explorer).  The former is easier, just switch from passing document.Name to document.FullName but the latter will be a little trickier.
      
      I've added a card onto Trello for tracking the work here https://trello.com/c/PludijKv.  Let me know if you're already looking into it, otherwise it's a pretty easy add I can follow through.
      
      Thanks for the suggestion, :)
      -Steve Cadwallader
  • Source control CodeMaid settings?
    3 Posts | Last post February 13, 2014
    • We currently use StyleCop to check our code. StyleCop has per-project settings which we keep in source control so the settings are always consistent across the team. Is there a way to do this with the CodeMaid settings?
    • Not yet, but per solution settings is a popular feature request in the backlog.  Track, vote, or comment here: https://trello.com/c/2LFW2Z9m
    • Great. Thanks!
  • BUG: Commented out code after comment, on every save multilpe extra empty comments
    2 Posts | Last post February 10, 2014
    • Running v0.7.0, if you have code:
      
      // This is a test
      //// This is commented out code
      
      And you 'clean', you will get:
      
      // This is a test
      //
      //// This is commented out code
      
      Saving second time (clean on save):
      
      // This is a test
      //
      //
      //
      //// This is commented out code
      
      Savind 3rd time:
      // This is a test
      //
      //
      //
      //
      //
      //
      //
      //// This is commented out code
      
      So it is expanding rappidly. 
      
      The only things i've changed in the default settings are:
      - General: Checked 'Automatically run cleanup on file save'
      - Comments: Unchecked 'Skip wrapping on the last word'
      - Comments: Checked 'Run format comments during cleanup
      - Comments: Cleared all text in the multiline textbox 'Major Tags'
      
      
      
    • This is an open bug in the Issue Tracker: https://bitbucket.org/s_cadwallader/codemaid/issue/249/xml-comments-formatting-issue-duplication
  • Keep startup project expanded when openning solutions?
    2 Posts | Last post February 06, 2014
    • Can a collapsing option be made to (for solutions with multiple projects) keep the startup project expanded to it's root level. (There's an option like this for solutions with a single project.)
    • Thanks for the suggestion, I like it.  I've added it to the backlog here for voting and comments: https://trello.com/c/unqeCWlk
  • It is one of the best free VS extension.
    2 Posts | Last post February 01, 2014
    • Thank you for developing CodeMaid. I'd like to suggest some features for CodeMaid. 
      - Need an option to remove unwanted references while doing the cleanup.
      - Highlight unused variables within a class while editing
    • You're very welcome, glad you like it. :)
      
      The first feature is already included, check out CodeMaid->Configuration->Cleaning->Visual Studio->Run remove unused using statements
      
      The second feature will require the Roslyn compiler (future edition of Visual Studio) but is one I will keep in mind if Microsoft doesn't bake it in.  There are other tools (e.g. ReSharper, not free) that support that functionality now.
  • Not working anymore?
    2 Posts | Last post January 30, 2014
    • I don't know why but after I installed VS2013 Update it's not working. Nothing happened tried to clean code. Is it bug?
    • There is a known Visual Studio bug that will disable the CodeMaid cleanup commands within the solution explorer (they will work elsewhere such as within the document).  There are details including a link to the Microsoft Connect issue and a workaround through the CodeMaid issue here: https://bitbucket.org/s_cadwallader/codemaid/issue/220/vs2013-cleanup-all-code-shows-error
1 - 10 of 103 Items