vscode-clang-format
vscode-clang-format copied to clipboard
.clang-format file and lambda function format
First of all, thanks for this great tool! Secondly, in my project I have a local specific .clang-format
file. I saw that there is an option to specify the clang format manually in the VS Code, but I have not found an option where I can add my custom .clang-format
file. I even tried to update the .vscode\extensions\xaver.clang-format-1.9.0\
path, but didn't work.
I want to especially to eliminate that clang make short lambda expression on a single line. To get [1] instead of [2]
[1]
auto func = []()
{
std::cout << "hello, world" << std::endl;
};
[2]
auto func = []() { std::cout << "hello, world" << std::endl; };