Eclipse/nsight formatter doesn't respect function body indentation policy

╄→尐↘猪︶ㄣ 提交于 2021-02-10 08:35:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!