Operator % does not insert space #8461
Unanswered
LiShunGang (LiShunGang)
asked this question in
Q&A
Replies: 1 comment 3 replies
|
It appears to be a limitation/bug with the vcFormat engine. You need to use something like "int i = ctx% m_op;" for the formatting to work. Is the % operator overloaded to have a side effect that modifies its arguments? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This is my setting

After auto format, the space before "operator %" is removed. But this does not happen on other operators.

How to make it insert space near "operator %"?
Vscode version: 1.7.0
C/C++ version: 1.61.1
All reactions