How do I configure Uncrustify to format on save in VS Code?

206 views Asked by At

I have installed Uncrustify with Brew on Mac, and installed the extension on VS Code.

I created an uncrustify.cfg and configured some rules.

I would like to use Uncrustify to format the document on save. How can I do this in VS Code?

1

There are 1 answers

0
NetHawk On

I had prettier configured as my code formatter. Once I went to the settings and selected uncrustify, it worked.