Update docs/handbook/development_environments/vscode.md #51
@ -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
|
||||
in:
|
||||
|
||||
- `blender-git/lib/<platform-name>/llvm/bin`
|
||||
- `blender-git/blender/lib/<platform-name>/llvm/bin`
|
||||
- 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
|
||||
to that. In the settings for the C/C++ extension, make sure that:
|
||||
@ -225,6 +225,10 @@ added to the user `settings.json`.
|
||||
"c": {
|
||||
"begin": "\\{",
|
||||
"end": "\\}"
|
||||
},
|
||||
"cpp": {
|
||||
"begin": "\\{",
|
||||
"end": "\\}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user