Update docs/handbook/development_environments/vscode.md #51

Merged
Brecht Van Lommel merged 1 commits from Sean-Kim/blender-developer-docs:vscode-fixes into main 2024-04-26 17:23:39 +02:00

View File

@ -137,9 +137,9 @@ and you may find **Editor: Format On Paste** or other options useful.
Blender comes with a specific clang-format executable that can be found Blender comes with a specific clang-format executable that can be found
in: in:
- `blender-git/lib/<platform-name>/llvm/bin` - `blender-git/blender/lib/<platform-name>/llvm/bin`
- e.g. - e.g.
`~/blender-git/lib/linux_x86_64_glibc_228/llvm/bin/clang-format` `~/blender-git/blender/lib/linux_x64/llvm/bin/clang-format`
In order for the formatting to be correct, VS-Code needs to be pointed In order for the formatting to be correct, VS-Code needs to be pointed
to that. In the settings for the C/C++ extension, make sure that: to that. In the settings for the C/C++ extension, make sure that:
@ -225,6 +225,10 @@ added to the user `settings.json`.
"c": { "c": {
"begin": "\\{", "begin": "\\{",
"end": "\\}" "end": "\\}"
},
"cpp": {
"begin": "\\{",
"end": "\\}"
} }
} }
} }