LaurentTreguier / vscode-uncrustify

Code format using uncrustify
66 stars 10 forks source link

can't use default .cfg #17

Closed jhoogeboom closed 6 years ago

jhoogeboom commented 6 years ago

I want to use one config for all my projects, so I've added it my user settings:

"uncrustify.configPath": "/Users/myuser/.vscode/uncrustify.cfg"

using this cfg: https://gist.github.com/mkroman/1372117#file-uncrustify-cfg

screen shot 2017-11-14 at 10 59 31

these are all the options presented, how to actually format something?

LaurentTreguier commented 6 years ago

The actual formatting is an integral part of VSCode; once you've opened a file that uncrustify can format, just search for the Format Document command. As long as the file you opened can be formatted, this command should be available.

jhoogeboom commented 6 years ago

Thanks! Just switched from Atom where this was functionality wrapped in beautify, seems to work fine now.