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

推荐订阅源

博客园_首页
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Engineering at Meta
Engineering at Meta
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
M
MIT News - Artificial intelligence
IT之家
IT之家
博客园 - 【当耐特】
U
Unit 42
云风的 BLOG
云风的 BLOG
L
LangChain Blog
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
B
Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
宝玉的分享
宝玉的分享
N
Netflix TechBlog - Medium

博客园 - 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同目录下