Is it possible to autoformat C++ code to place a space between if and a bracket?

I'm looking to autoformat a block of C++ code to place a space between if and a following bracket, like “if(...)” becomes “if (...)”

Ideally, it will autoformat when I place a curly bracket.

I could not find anything like that in settings.

0
2 comments

ok, I found how to autoformat and apply style on Save, but it does not format on closing bracket or “;”

0

Hello Dpolyakov,

Regrettably, this feature is not supported yet. 

We have a corresponding issue on the tracker: RSCPP-18671. Please feel free to vote for/star this issue to get a notification when it is implemented.

0

Please sign in to leave a comment.