所有关于代码风格的设置都在这里:

image.png

从图上看,格式化时,可以

  1. 从 .clang-format 读取格式化规则
  2. 将格式化规则输出到 .clang-format