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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
月光博客
月光博客
爱范儿
爱范儿
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
GbyAI
GbyAI
腾讯CDC
The Cloudflare Blog
人人都是产品经理
人人都是产品经理
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
云风的 BLOG
云风的 BLOG
U
Unit 42
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
N
Netflix TechBlog - Medium
Google DeepMind News
Google DeepMind News
雷峰网
雷峰网
L
LangChain 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同目录下