How can I get Eclipse to insert tabs instead of spaces for Java content assist?

后端 未结 9 1053
星月不相逢
星月不相逢 2020-12-30 23:42

Is there any way to persuade Eclipse to use tabs instead of spaces for indenting its built-in Java content assist proposals (such as when creating an empty method which over

9条回答
  •  一向
    一向 (楼主)
    2020-12-31 00:02

    Yet another solution that "worked for me" even if the other solutions didn't work (Version: 3.8.1):

    Preferences > Java > Code Style > Formatter > Edit > Indentation > Use spaces to indent wrapped lines - Set unchecked

    This is essentially the "smart tabs" option. It works for the formatter, but it incorrectly sets code generation into using spaces only. Annoyingly, the solution breaks the formatter.

提交回复
热议问题