vscode安装了clang-format插件,但是使用就报错
设置中配置的clang-format插件工具路径不正确。
/usr/lib/llvm-13/bin/clang-format
Zhenxing.Wang3@123:~/data/my_code$ whereis clang-format-13
clang-format-13: /usr/bin/clang-format-13 /usr/share/man/man1/clang-format-13.1.gz
Zhenxing.Wang3@123:~/data/my_code$ cd /usr/bin/
Zhenxing.Wang3@123:/usr/bin$ ll |grep clang
lrwxrwxrwx 1 root root 31 Jul 6 2022 clang-format-13 -> ../lib/llvm-13/bin/clang-format*
-rwxr-xr-x 1 root root 5129 Jul 6 2022 clang-format-diff-13*
lrwxrwxrwx 1 root root 35 Jul 6 2022 git-clang-format-13 -> ../lib/llvm-13/bin/git-clang-format*