Eclipse editor replaces spaces,tabs, new lines wit

2019-03-03 07:52发布

Eclipse Editor Problem

The problem: As you can see, the editor 'replaces' spaces, tabs and new lines with weird characters.

What I tried to do to fix the problem:

  • Reboot PC, start eclipse again.
  • Change editor theme.
  • Restore default settings at Appearance tab.
  • Tried to check other projects, same problem.

And I have no clue how to fix it, as there is no answer in google.

1条回答
Summer. ? 凉城
2楼-- · 2019-03-03 08:34

You have 'show whitespace characters' enabled. The characters are not 'gibberish' they are showing you things like tab and new line characters.

Open the Preferences and go to 'General > Editors > Text Editors' and deselect the 'show whitespace characters' option.

There is also a button on the toolbar for this.

查看更多
登录 后发表回答