I use CUDA 8.0's version of nsight (Eclipse platform 4.4.0, CDT 8.4.0). My Eclipse C/++ formatter is configured to indent as follows (image is from the Formatter config prev:
but if I have this code:
and I press enter, get to the next line (the cursor is placed under the span
), and type in an opening brace, it is not placed at the beginning of the line, but is rather kept indented:
Is this a bug or have I misconfigured something?
Notes:
I see this behaviour in stock CDT as well. It looks like a bug. Please file a bug report.