本文翻译自:Show whitespace characters in Visual Studio Code
Is it possible to show whitespace characters, like the space character, in Visual Studio Code? 是否可以在Visual Studio代码中显示空格字符,如空格字符?
There doesn't appear to be an option for it in the settings.json
(though it is an option in Atom.io ), and I haven't been able to display whitespace characters using CSS. 在settings.json
似乎没有它的选项(虽然它是Atom.io中的一个选项),但我无法使用CSS显示空格字符。
#1楼
参考:https://stackoom.com/question/22Swd/在Visual-Studio代码中显示空白字符
#2楼
VS Code 1.6.0 and Greater VS Code 1.6.0和更高版本
As mentioned by aloisdg below , editor.renderWhitespace
is now an enum taking either none
, boundary
or all
. 正如提到以下aloisdg , editor.renderWhitespace
现在是一个枚举采取任何none
, boundary
或all
。 To view all whitespaces: 要查看所有空格:
"editor.