Show whitespace characters in Visual Studio Code

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

    *** Update August 2020 Release *** see https://github.com/microsoft/vscode/pull/104310

    "editor.renderWhitespace": "trailing" // option being added

    Add a new option ('trailing') to editor.renderWhitespace that renders only 
    trailing whitespace (including lines with only whitespace).
    

    *** Update February 2020 Release *** see https://github.com/microsoft/vscode/issues/90386

    In v1.43 the default value will be changed to selection from none as it was in v1.42.

    "editor.renderWhitespace": "selection"  // default in v1.43
    

    Update for v1.37: adding the option to render whitespace within selected text only. See v1.37 release notes, render whitespace.

    The editor.renderWhitespace setting now supports a selection option. With this option set, whitespace will be shown only on selected text:

    "editor.renderWhitespace": "selection"
    

    and

    "workbench.colorCustomizations": {    
      "editorWhitespace.foreground": "#fbff00"
    }
    


提交回复
热议问题