Author
Topic: C/C++ indent cursor placement error (Read 1461 times)

Just noticed an odd indent problem when running RC1 (and also after trying it with VS 20, I see the same thing).

If I enter an "if" statement and then press Enter with the cursor after the closing ')' of the if, the cursor is correctly indented on the next line. (I don't have braces automatically inserted.) However, if I enter an if statement and then a line comment following the closing ')' of the if, when I press Enter, the cursor is not indented -- it's placed in the same column as the 'if'. If I type an opening brace, it is properly indented (per my formatting style).

The same thing happens with other statements (else, while, for) depending on whether I do or don't have a line comment. Pressing Tab does move the cursor where I expect it, so it's a relatively minor issue, but thought I'd mention it here in case it's a simple fix.