问题
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 tried both the built-in formatter and the "CUDA C" formatter; they behave the same in this case
回答1:
I see this behaviour in stock CDT as well. It looks like a bug. Please file a bug report.
来源:https://stackoverflow.com/questions/41853173/eclipse-nsight-formatter-doesnt-respect-function-body-indentation-policy