Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keep code always formatted properly?

Is it possible to make visual studio keep the code always formatted properly? I use the format document and selection but it wastes time. Any solutions? Third party tools welcome too.

like image 682
Curtis White Avatar asked May 26 '26 04:05

Curtis White


2 Answers

I use CodeMaid that formats the document (and performs some other, configurable stuff such as removing extra blank lines and similar) automatically on save. Available for 2005/2008/2010 (I only used it in VS2010).

like image 52
Fredrik Mörk Avatar answered Jun 01 '26 05:06

Fredrik Mörk


See Uncrustify and Artistic Style and also Universal Indent GUI

like image 43
Gregory Pakosz Avatar answered Jun 01 '26 03:06

Gregory Pakosz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!