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

could you please clarify that is cpp support selection formatting or not? could it be supported?

Open heartacker opened this issue 3 months ago • 4 comments

Environment

all

Bug Summary and Steps to Reproduce

I have face a formatting issue while code c within cpp tool https://github.com/microsoft/vscode/issues/257764#issuecomment-3632579444

Configuration and Logs

*

Other Extensions

No response

Additional context

No response

heartacker avatar Dec 10 '25 02:12 heartacker

@heartacker We support formatRange, which is selection formatting, but I believe in some cases code outside of the range will still be updated if that's what clangFormat or vcFormat decides to do.

sean-mcmanus avatar Dec 10 '25 14:12 sean-mcmanus

Oh, I see the linked vscode issue has some more activity...let us know if still want us to investigate something. I vaguely recall we don't support formatting multiple ranges at a time.

sean-mcmanus avatar Dec 10 '25 14:12 sean-mcmanus

@heartacker Seems like a duplicate of https://github.com/microsoft/vscode-cpptools/issues/12119 ? Well, not sure, let us know.

sean-mcmanus avatar Dec 10 '25 15:12 sean-mcmanus

Sorry, I'm not very familiar with more in-depth concepts. It's very difficult for me to offer more ideas and viewpoints. Of course, you can follow the steps reproduced in the vscode link to identify the specific root cause. I would be extremely grateful.

heartacker avatar Dec 11 '25 02:12 heartacker

@heartacker It sounds like VS Code pushed some fix. Can this issue be closed?

sean-mcmanus avatar Dec 15 '25 19:12 sean-mcmanus

thanks

heartacker avatar Dec 15 '25 23:12 heartacker