Show SOME invisible/whitespace characters in Eclipse

前端 未结 5 1702
终归单人心
终归单人心 2020-12-07 10:53

A long while back I transitioned to doing all my web application development in Eclipse from BBEdit. But I miss one little feature from BBEdit. I used to be able to show inv

相关标签:
5条回答
  • 2020-12-07 11:11

    AnyEdit Scroll all the way down: http://andrei.gmxhome.de/anyedit/examples.html

    0 讨论(0)
  • 2020-12-07 11:12

    Navigate to Window > Preferences > General > Editors > Text Editors

    Click on the CheckBox "Show whitespace characters".

    enter image description here

    Thats all.!!!

    0 讨论(0)
  • 2020-12-07 11:13

    I would prefer to keep the "Show Whitespace" button on the toolbar, so that in one click you can toggle it.

    Go to Window -> Perspective -> Customize Perspective and enable to show the button on toolbar.

    0 讨论(0)
  • 2020-12-07 11:18

    Unfortunately, you can only turn on all invisible (whitespace) characters at the same time. I suggest you file an enhancement request but I doubt they will pick it up.

    The text component in Eclipse is very complicated as it is and they are not keen on making them even worse.

    [UPDATE] This has been fixed in Eclipse 3.7: Go to Window > Preferences > General > Editors > Text Editors

    Click on the link "whitespace characters" to fine tune what should be shown.

    Kudos go to John Isaacks

    0 讨论(0)
  • 2020-12-07 11:29

    I use Checkstlye plugin for such a purpose. In Checkstyle configuration, I add special regexp rules to detect lines with TABs and then mark such lines as checkstyle ERROR, which is clearly visible in Eclipse editor. Works fine.

    0 讨论(0)
提交回复
热议问题