Show whitespace characters in Visual Studio Code

后端 未结 13 1564
不知归路
不知归路 2020-12-04 05:12

Is it possible to show whitespace characters, like the space character, in Visual Studio Code?

There doesn\'t appear to be an option for it in the settings.js

13条回答
  •  自闭症患者
    2020-12-04 05:23

    I'd like to offer this suggestion as a side note.
    If you're looking to fix all the 'trailing whitespaces' warnings your linter throws at you.
    You can have VSCode automatically trim whitespaces from an entire file using the keyboard chord.
    CTRL+K / X (by default)

    I was looking into showing whitespaces because my linter kept bugging me with whitespace warnings. So that's why I'm here.

提交回复
热议问题