赞
踩
右键
→
\rightarrow
→ Format Document
进行格式化,或者通过快捷键⌥⇧F 进行格式化如果提示The 'clang-format' command is not available
,具体报错信息如下:
The 'clang-format' command is not available. Please check your clang-format.executable user setting and ensure it is installed.
自己检查发现又发现Clang-Format已经成功安装,这时需要通过命令进行安装:
brew install clang-format
找了很多方法,目前就这个办法亲测ok。感谢博客:Golang 集成 Protobuf 及 vscode 配置
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。