working clang-format

clang-format is a code formatter, not a compiler tool.
It:

Rewrites your C++ source code
Adjusts indentation, spacing, line breaks, brace style, etc and makes
code look consistent
This commit is contained in:
dl92
2026-01-07 23:01:30 +00:00
parent 67aa4d8692
commit 44f51cf531
3 changed files with 200 additions and 5 deletions

View File

@@ -1,5 +1,11 @@
{
"[cpp]": {
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd",
"editor.formatOnSave": true
},
"cmake.configureSettings": {
"CMAKE_TOOLCHAIN_FILE": "/home/ys/family-repo/Code/cplusplus/tools/vcpkg/scripts/buildsystems/vcpkg.cmake",