codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.89k stars 356 forks source link

Question:Any solution to run natively cleanup of visual studio with codemaid #920

Closed Winches closed 2 years ago

Winches commented 2 years ago

Environment

Description

Cleaning of codemaid is fine,but natively cleanup has lots of fixer which is useful. It' will be lovely if codemaid can have this feature.

image
codecadwallader commented 2 years ago

Thanks for asking the question. I believe you can turn on automatic cleanup on save for Visual Studio's new cleanup functionality, similar to how CodeMaid works. I found this setting under Tools->Options by searching for cleanup (screenshot).

image

It is possible this could cause conflicts with CodeMaid's cleanup since they're both trying to run on the save event. The main thing to check is that CodeMaid still has its default options to skip undo transactions during automatic cleanup on save (screenshot).

image

Hope it helps!

Winches commented 2 years ago

Thanks for your suggestion.I'm using automatically cleanup now