File --> Preference --> setting --> 搜索 clang_format --> 在C_Cpp:Clang_format_fallback Style的输入窗中填入如下代码风格之一:

Visual Studio LLVM,Google,Chromuim, Mozilla, WebKit

或者:

{ BasedOnStyle: LLVM, IndentWidth: 4 }
//IndentWidth是缩进值,可自定义,默认为2

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-08-13
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-01
  • 2021-07-31
  • 2021-10-14
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案