Good extension, but I have some remarks: What for in VS2012 there "Find in solution" in context menu and "collapse all recursively" in solution explorer? VS2012 already has this functions. There would be great if I can configure what buttons to display in context menu and solution explorer. What do you think about updating icons to make them pixel-clear because thy are blurry?
As a C# developer, this tool is a pretty good collection of most wanted tools: easy to learn, easy to customize (e.g. the reorganizing tool). I like the code map displaying regions, embedded methods, interfaces etc., so I easily can navigate between them. Congratulations to the developer of CodeMaid!
I have checked CodeMaid against VS10x CodeMap and I have to say that for my daily work and regarding to what I really need: CodeMaid is on the same Level like VS10x CodeMap.
Spade should fully run asynchronously - so although it may take a long time for it to load I wouldn't expect a performance hit except on a single core machine. I've created a Trello card for further discussion here: https://trello.com/c/ha1vFRS7
Hehe, it is good to help any dev's sanity stay afloat. ;)
That's a good point for discussion about auto-disabling new features for consistency. The big downside is that users would have to manually search through the configuration on each update to find/enable new features. I think it is fairly common to enable new features, and give the user the option to go in and turn them off if they don't like them. Happy to discuss further, I've created a Trello card here: https://trello.com/c/eoLpxzGI for discussion.
That's good feedback. I was trying to be clever and conserve space because those lists get pretty massive - but I have heard a few times that it is not very intuitive. Created a Trello card for that as well: https://trello.com/c/q4QjOEBe for voting/comments.
Thanks for the feedback points, they're certainly appreciated - and enjoy. :)
They used to be built in to VS settings, but I took them out several versions ago. The built in settings does not support nested levels for extensions without registry hacks (which was a source of issues) and the size of the configuration window is a fixed small size. Now in v0.6.0 CodeMaid supports exporting settings as well, but it is an independent step.
Seems like a valuable extension to the Visual Studio IDE, but unfortunately it crashes Visual Studio 2013 for me whenever I open a project. It may be conflicting with another extension I have but I'm unware of it causing any issues.
There is a known issue with VS2012 C++ projects that Microsoft is looking into (https://connect.microsoft.com/VisualStudio/feedback/details/770205/accessing-envdte80-codeclass2-c-members-hangs-vs2012). The workaround for now is to close the Spade tool window which is the part of CodeMaid that is accessing an API which is no longer functioning in VS2012.
If your issue is not with C++ projects, please let me know some additional details and I'd be happy to look into it. BitBucket is where we track issues so that would be the best place to report it: https://bitbucket.org/s_cadwallader/codemaid/issues
I love it. Keeps the code clean. It would be cool if it wouldn't remove the "using" statements required by code that is commented. I sometimes comment out some lines while debugging and if I decide to use that code I have to add the "using" statement again.
Thanks, glad you love it. :) The using statement removal logic comes directly from Microsoft (i.e. CodeMaid just invokes it). You could ask them about it but I suspect they would say it is by design that they don't analyze commented out code.
Is it possible to exclude the "References" folder when doing a cleanup all on a project that has web references? Since these generated classes can at times be large and cleanup serves no purpose on those files since they will never be edited but always regenerated automatically, ignoring those files would speed up the clean up all process dramatically.
Did the progress bar get changed in 0.7.0? I just updated my Win 8.1/VS2010 machine to 0.7.0 and both the progress window and the task bar icon now use the somewhat useless Win 8 travelling progress bar that doesn't actually show any progress.
No, there have been no updates to the progress bar with the v0.7.0 release. Some operations are indeterminate (e.g. building an individual project vs. the solution) but that hasn't changed since previous releases.
Well, that's strange. I rolled back to 0.6.2 and the progress bars worked properly. To confirm the problem I upgraded to 0.7.0 again and, lo and behold, I still get the proper progress bars. I don't know if the second upgrade fixed it or the multiple restarts of VS, but works now.
The CodeMaid progress bars are a great feature, but they were rendered useless by the Win8 style progress bar.
This is my 1st time trying to use tools like code maid. After i installed the app using NuGet, the nuget manager app indicates that CodeMaid is disabled - when I doublie click the disabled Enable button, the app is ready to uninstall from the machine. Answer links present for a 'disabled' search on the QA page are broken.
Any help will be greatly beneficial.
My bad. Fixed it. My colleague helped me out. For folks who might need the solution: In Tools-->Option window, Under Environment, there is an option 'Extension and Updates'. In my problem, Load per user extension when running as adminstrator was NOT checked. I checked it (set the checkbox to true) and re-started vs 2013.
thanks for your patience.
Hi Ravi -
I'm glad that you figured out the source of the problem, and I appreciate you sharing it for anybody else who might encounter that setting having been changed. Hope you enjoy the tool. :)
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.
Hi - the "Cleanup Code" menu option (and keyboard binding) are unavailable in my .html/.cshtml files. The command is available for .cs and .js files. I've gone through the configuration and the HTML checkbox is checked in the File Types section. Any ideas why this command is being disabled for these files? I'm using VS 2013.
There is a known issue with Visual Studio's devenv.exe.config file that I'm working with Microsoft to get resolved. The net effect is that the cleanup commands invoked from the solution explorer will not work, but you should still be able to cleanup files that are open as document tabs. Please follow through our BitBucket issue to track status and vote up the backing Microsoft connect issue, as well as view a workaround: https://bitbucket.org/s_cadwallader/codemaid/issue/220/vs2013-cleanup-all-code-shows-error
Is there any way to bypass code cleaning for a class or a region?
For example, in my DemoCode.cs, there are 3 classes: MyControl, MyEntity and MyHelper. I don't want MyEntity to be sorted when doing code cleaning.
Another example, in MyControl class, there are some functions in a #region block that I don't want them be sorted.
Thank you for reply.
Hi Chris -
No, currently reorganization runs on the entire file. In the case of your three classes in one file I would recommend separating the classes each to their own file as good practice and an easy workaround. However skipping a region would be a little trickier without utilizing partial classes. Is it a standard region that you would always want to skip, or just a one-time example? If you have some ideas about a feature request please start the conversation on the Trello backlog here: https://trello.com/b/VVxVhbQv/future
Hope it helps,
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.