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.
In our team we made it mandatory to use CodeMaid, but the sorting order rules for using statements differ across team members. For some it is correct - System usings go first, but for others they get sorted alphabetically regardless being System imports or not. We didn't find any configuration setting that would affect this.
Is this setting hidden in some config file?
Thank you for reply.
Hi Maynard -
I encountered that as well with my own team. There is a setting for this within Visual Studio's Options under Text Editor->C#->Advanced->"Place 'System' directives first when sorting usings"
This option used to be enabled by default in VS2010 and earlier, but Microsoft changed it to be disabled by default in VS2012 and later due to Windows Store apps using the Windows.* namespace.
A couple useful links:
Hope it helps, :)
Hi Zubayba -
The current version of CodeMaid no longer supports Visual Studio 2005 or Visual Studio 2008. The last version of CodeMaid that does support those versions is v0.4.3 which can be downloaded from here: https://bitbucket.org/s_cadwallader/codemaid/downloads/CodeMaid_v0.4.3.msi
Hope it helps,
I downloaded this tonight and installed it on a new machine with VS2010 -- I really like the "Format comments during cleanup, Wrap comments at column" option -- but it's disabled, and there's no way to make it turn on. What gives?
Also, completely different issue with the same feature: in the version of Code Maid installed on my home machine that I downloaded last month, the "wrap comments at column" feature was deleting the preceding white space from the first line of a block of comments. It was very annoying. I could do a reformat of the document to realign the comments -- but even with the checkbox "Run format document" checked, it didn't fix the issue when I ran CodeMaid clean (was the format document being run before the format comments? Seems to me that switching the order those items are called in would fix that issue.)
Comment formatting support is currently only available in VS2012 and higher. There is a card in the backlog here to add support for VS2010 if you would like to vote it up/track progress: https://trello.com/c/QylslKhh
There are a few known issues with comment formatting which is a new feature. You can track them and/or report them if not already present on BitBucket (https://bitbucket.org/s_cadwallader/codemaid/issues?status=new&status=open . Additionally you can download the latest alpha releases which contain some fixes.
Setting the Display Theme to dark seems to only be partially implemented.
Certain portions of the window are in a dark theme, but everything else is light grey on white, making it unreadable.
You can see an example of how it displays here:
Thanks for reporting the issue. I am unable to reproduce. Will you file a bug on BitBucket including details like an exported copy of your settings, what version of Visual Studio you are using and which Visual Studio theme you are using?
Do you have plans to add additional StyleCop rules to the reorganize method? Personally I would like to have it move using directives inside the namespace and add the file copyright XML that is required by StyleCop.
It would also be nice to have your extension turn on stylecop on a project so I do not have to edit the csproj file directly.
Overall I love it though.
Glad to hear you love it. :) Please check out the product backlog on Trello to vote/comment/suggest new features:
Some of your suggestions are already present:
Thanks for the suggestion. I think there is already another VS extension that is focused on statement alignment - check out: http://visualstudiogallery.msdn.microsoft.com/7179e851-a263-44b7-a177-1d31e33c84fd
The new Format Comment functionality currently only supports VS2012 and higher. There is a backlog card to add support for VS2010 here: https://trello.com/c/QylslKhh/115-add-comment-formatting-support-to-vs2010
If you call 'CleanUp All Code' in VS2013 you get this error with Codemaid(0.6.2):
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. Das System kann die angegebene Datei nicht finden.
Thanks Alexander. I have created two new issues on BitBucket for those VS2013 batch cleanup issues:
Alexander: Hopefully you're tracking the BitBucket issue (https://bitbucket.org/s_cadwallader/codemaid/issue/220/vs2013-cleanup-all-code-shows-error), but if not it has been identified and passed on to Microsoft here:
Trying to use CodeMade 0.6.2 with VS2012. After I open the project everything works well until I go to the "Spade" window, then everything hangs and VS shows the "waiting for a background process" window forever. nothing works until I kill VS and start over.
This is a known issue with the C++ API in VS2012. You can use CodeMaid, but you will have to close the Spade tool window which accesses parts of the API that are now hanging in VS2012. This is not an issue in VS2010, and Microsoft has fixed it for VS2013. So the issue only occurs with VS2012 C++ projects.
Microsoft was very helpful when I worked with them on this issue, and in addition to resolving it for future releases (e.g. VS2013) they provided some workaround suggestions for VS2012. They're non-trivial, but they are on my radar and progress can be tracked on BitBucket here: https://bitbucket.org/s_cadwallader/codemaid/issue/142/spade-starts-endless-process-in-vs-2012-c
I have a rater big C# Project, on witch VS2012 crashes when I run a Code CleanUp.
The Project has ~770 files, and VS always crashes at ~400 cleaned up with OOM or another simmilar exception. (Before that the Memory use slowly increases)