就像 Sublime Text 中的那样。目前我只发现能够永久显示空白。
自版本 2023.1 起,在
Preferences | Editor | General | Appearance
下的设置中有一个选项可以启用此功能。
对于旧版本,在功能请求中发布了一个获得所需效果的有趣技巧。
Show whitespaces
中启用
File | Settings | Editor | General | Appearance
Text | Whitespaces
前景色设置为与 File | Settings | Editor | Colors & Fonts | General
结果:默认情况下,空白是不可见的,但是当选择文本时,背景颜色将改变并且空白变得可见。
在 IDEA 2023.1 中,
Settings | Editor | General | Appearance | Show whitespaces | Selection
中有一个选项。