快捷键Shift + Alt + F 打开文件->首选项->设置或者快捷键Ctrl + ,搜索设置clang如下图 在上图中 C_Cpp:Clang_format_style下面的输入框中输入: { BasedOnStyle: Google, UseTab: Never, IndentWidth: 4, TabWidth: 4