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.92k stars 364 forks source link

standalone / cli version? #616

Open OneCyrus opened 5 years ago

OneCyrus commented 5 years ago

is it possible to run this standalone from commandline without visual studio? we would like to enforce coding styles in PR gates

codecadwallader commented 5 years ago

Unfortunately no, that is not currently possible although I wish it was. The request has come up before, but CodeMaid heavily relies on Visual Studio's APIs and a lot of editor context that is only available when a file is open inside the Visual Studio IDE.

igitur commented 4 years ago

A bit out of scope, but related, do you know whether it's possible to automate Visual Studio to do a solution-wide CodeMaid Clean? I'd like to clean up all my code, including each git commit.

codecadwallader commented 4 years ago

@igitur There is the command to "Cleanup All Code" which will do a solution-wide cleanup. It can be invoked via Extensions->CodeMaid->Cleanup All Code or right clicking on the solution in Solution Explroer. I'm not sure if that answers your question?