我已经在我的 linux 机器上安装了 uncrustify,并且在 Visual Code 中也安装了它的扩展。我已将 settings.json 配置如下:
"uncrustify.executablePath": "/usr/bin/uncrustify",
"uncrustify.configPath": "/media/rinaldi/Excess/Dropbox/Projects/uncrusify-cpp.cfg"
并在 keybiddings.json 中添加了这一行:
{ "key": "ctrl+f6", "command": "uncrustify"}
当我点击“ctrl+f6”时,它说没有找到 uncrustify 命令,即使通过终端访问/usr/bin/uncrustify
我得到了 uncrustify 二进制文件。