Open walkthetalk opened 1 year ago
not only for display, e.g.
TabWidth: 8
it still display 4 spaces width for tab.
This needs to be configured in VSCode's own settings, see https://code.visualstudio.com/docs/editor/codebasics#_indentation
The .clang-format
file only controls the formatting actions performed by clangd (or other plugins that may invoke the clang-format
tool).
but also for 'format selection' in context menu.
I believe you also need to configure in VSCode settings that clangd should be used as the formatter for C++ source files, something like this:
"[cpp]": {
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
}
@HighCommander4 Thanks!
not only for display, e.g.
it still display 4 spaces width for tab.
but also for 'format selection' in context menu.