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

C++ lambda expression formatting is entirely corrupted

Open AlseinX opened this issue 2 weeks ago • 2 comments

Environment

Environment is irrelevant to this bug

Bug Summary and Steps to Reproduce

The formatter with default configuration enforces this format

delegate([this]()
            {
            std::this_thread::sleep_for(std::chrono::milliseconds(1000));
            next_query(); });

Every symbol appear at surprisingly unreasonable positions. Even though I believe some configuration would solve the problem, but Why should the formatter mess up our code by default?

Configuration and Logs

All by default.

Other Extensions

No response

Additional context

No response

AlseinX avatar Dec 01 '25 06:12 AlseinX