Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.clang-format file and lambda function format #129

Open
bessszilard opened this issue Jan 21, 2022 · 0 comments
Open

.clang-format file and lambda function format #129

bessszilard opened this issue Jan 21, 2022 · 0 comments

Comments

@bessszilard
Copy link

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; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant