Eclipse editor replaces spaces,tabs, new lines with gibberish

痴心易碎 提交于 2019-12-31 07:29:34

问题


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:


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.



来源:https://stackoverflow.com/questions/41188798/eclipse-editor-replaces-spaces-tabs-new-lines-with-gibberish

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