First its awesome and second its awesome, very light weight and incredible. But for some reasons it doesn't work on solution level clean-up all. I have mix projects in solution, ASP.NET MVC, Web API, Silverlight, WCF, Windows Service etc.. and total around 50+ projects excluding unit test projects :)... if it work at solution level then save more time for me and save me 50+ individual project level clicks...
VS2013 had a known issue with solution level cleanups being disabled. They fixed it recently with Update 2. If that doesn't do the trick a shortcut is you can multi-select projects and do cleanup on several at once. Also feel free to open a BitBucket issue and we can figure it out if it wasn't the VS update.
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.
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.
GREAT extension. I noticed the possibility to run the "silent cleanup" of the ReSharper extension. It would be awesome if one could just give CodeMaid a shortcut, which it should perform before or after the cleanup. Maybe I could trigger a silent cleanup of the Telerik-Extension "JustCode" as well?
I seem to have lost the Cleanup and Collapse buttons in the Solution Explorer window. Is there an option to switch them back on? I recently installed VS2013 Update 3 - but I can't be 100% sure that this removed them.
Hi Ben -
They were deliberately removed in the v0.7.3 update as Microsoft has a native collapse all button already in the solution explorer toolbar from VS2012 and up. There's been a number of people asking that question though so I'll roll back that change and re-introduce them in the next release.
As a VS2013 user, were you aware of the native collapse button? Do you use the cleanup all code button regularly that it's easier to have it present there vs. the menu?
Doh! No, I didn't notice the native Collapse button!
I tend to CleanUp on Save rather than use CleanUp All option - so it was just Collapse that I was missing really. Don't reintroduce them on my account...
Thanks for your help Steve - CodeMaid is really useful!
No worries, thanks for the details. It's mostly for VS2010 users but I was curious if there were other reasons they would still be helpful in VS2013.
Really glad to hear you're finding CodeMaid useful. :)
it would be great to configure the switching between defined classes matched by regex or something. In our case we have something like FooService.cs that is thightly bound to FooServiceContract.cs. It would be nice to define some sort of switching between these two.
Currently CodeMaid has two themes (dark and light) to match the Visual Studio themes. The tool window backgrounds are #FF252526 and #FFF6F6F6 respectively. By default CodeMaid will auto-detect the IDE tool window background color and choose one of the two themes from there.
Feature requests can be added to the backlog here: https://trello.com/b/VVxVhbQv/backlog
Or the relevant source code is available here:
Hope it helps.
Cool, glad to hear it. :)
We've moved over to GitHub this weekend, so if you've got something you think is generic enough you'd like to include in the main code line you can submit a pull request there. If not no worries too.
I have "Remove end of line whitespace" checked, but that option doesn't delete whitespace that exists on a blank line. (i.e. a line with whitespace only.) Is there a way to tell CodeMaid that I want ALL trailing whitespace to be removed? CodeMaid version is 0.7.1. Visual Studio version is Professional 2012 Update 4.
Glad you figured it out. Visual Studio does have the concept of a virtual cursor position - that's how the next line of code looks to be indented to the same level before you start writing anything. If you press the 'end' key you'll see it toggle between the virtual end of line and actual end of line, or you can enable viewing whitspace.
CodeMaid shouldn't(tm) be related to any settings about highlighting unused variables. I don't know that Visual Studio does that by default, I think it comes from other third party extensions like ReSharper.
Sorry to hear it. I haven't seen that issue or had any other users report it. Have you noticed any patterns about when your settings are getting reset, such as it happens after performing an operation in another extension? My best guess would be that the shared space where user preferences are stored are getting overwritten.
As a workaround until we can identify the source of the reset, I'd recommend exporting your settings when they're valid so you can quickly re-import them once you've noticed they have been reset.
I have the same problem, just today! And before I found the codemaid settings lost, I made an update of Visual Studio 2013 (Update 1). Thus, although I can not say this for sure, the lost settings may correspond to updates made in VisualStudio.
When i right click a solution and click 'clean all code...' i get below error message. This is in VS2013 update 1
Microsoft Visual Studio
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 a known Microsoft bug in VS2013. They've promised to fix it in VS2013 Update 2.
Please follow through this issue for details on a workaround: https://bitbucket.org/s_cadwallader/codemaid/issue/220/vs2013-cleanup-all-code-shows-error