I've installed uncrustify in my linux machine and installed it's the extension in Visual Code as well. I've configured the settings.json as follows:
"uncrustify.executablePath": "/usr/bin/uncrustify",
"uncrustify.configPath": "/media/rinaldi/Excess/Dropbox/Projects/uncrusify-cpp.cfg"
and added the line in the keybiddings.json:
{ "key": "ctrl+f6", "command": "uncrustify"}
When I hit "ctrl+f6" it says that the uncrustify command wasn't found even though through a terminal accessing /usr/bin/uncrustify I get the uncrustify binary.
File→Preferences→Keyboard shortcuts→Format Document (
editor.action.formatDocument). Overwrite it with your Ctrl+F6.