vscode-clangd icon indicating copy to clipboard operation
vscode-clangd copied to clipboard

Enable to change format style properties globally

Open daher13 opened this issue 4 years ago • 3 comments

How to change format style single properties like indent width and column limit globally?

daher13 avatar Sep 11 '21 13:09 daher13

Putting them into a .clang-format file in your home directory (or any ancestor directory of all your projects) should work.

HighCommander4 avatar Sep 11 '21 19:09 HighCommander4

Put the file .clang-format in HOME dir works. But, is there anyway to set the path of .clang-format file manually on VSCode?

daher13 avatar Sep 11 '21 22:09 daher13

Put the file .clang-format in HOME dir works. But, is there anyway to set the path of .clang-format file manually on VSCode?

I'm not aware of one.

#184 and https://github.com/clangd/clangd/issues/805 are open and seem to be asking for something similar.

HighCommander4 avatar Sep 11 '21 22:09 HighCommander4