惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
B
Blog
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
量子位
博客园 - 叶小钗
T
Tailwind CSS Blog
小众软件
小众软件
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
雷峰网
雷峰网
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
V
V2EX
博客园_首页
I
InfoQ
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog

博客园 - ParamousGIS

VS中CMakePresets的Path环境变量设置 VTK 类结构图 VSCode的C++项目缓存目录 VMWare Workstation 17.6安装Windows7 awesome-cpp 矢量切片工具--SparkVectorTileTool dll生成lib 自动布局 C++第三方库 QT + CMake环境配置 UE5--022--2D Blend Spaces UE5--025--SuperSideScrollerGame--004--AnimBP--AnimMontage UE5--024--SuperSideScrollerGame--003--AIController UE5--023--SuperSideScrollerGame--002 UE5--022--SuperSideScrollerGame--001 UE5--021--Animation Montage UE5--020--Material Instances UE5--019--LayeredBlendPerBone UE5--018--BlendSpace--AnimGraph
应用clang-format对c++代码时进行格式化
ParamousGIS · 2025-04-22 · via 博客园 - ParamousGIS

1. VS Code

settings.json文件

{
  
  // "C_Cpp.clang_format_fallbackStyle": "Google",
  "C_Cpp.clang_format_path": "D:/GreenSoftware/CPlusPlus/ClangLLVM/bin/clang-format.exe",
  "C_Cpp.clang_format_style": "file:D:/GreenSoftware/CPlusPlus/ClangLLVM/format-styles/.clang-format-microsoft",
  "clangd.enableCodeCompletion": false,

......
}

2. Qt Creator

帮助 –》 关于插件

image

重启Qt Creator

image

将.clang-format-microsoft重命名为.clang-format,放在.pro或.sln同目录下