Show whitespace characters in Visual Studio Code

后端 未结 13 1593
不知归路
不知归路 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:39

    It is not a boolean anymore. They switched to an enum. Now we can choose between: none, boundary, and all.

    // Controls how the editor should render whitespace characters,
    // posibilties are 'none', 'boundary', and 'all'.
    // The 'boundary' option does not render single spaces between words.
    "editor.renderWhitespace": "none",
    

    You can see the original diff on GitHub.

提交回复
热议问题