vscode-clang-format icon indicating copy to clipboard operation
vscode-clang-format copied to clipboard

.clang-format file and lambda function format

Open bessszilard opened this issue 2 years ago • 0 comments

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; };

bessszilard avatar Jan 21 '22 14:01 bessszilard