Skip to main content

VS Code 1.6.0 and Greater

As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces:

"editor.renderWhitespace": "all", 
"editor.renderWhitespace": "all", 

Before VS Code 1.6.0

Before 1.6.0, you had to set editor.renderWhitespace to true:

"editor.renderWhitespace": true
"editor.renderWhitespace": true

VS Code 1.6.0 and Greater

As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces:

"editor.renderWhitespace": "all", 

Before VS Code 1.6.0

Before 1.6.0, you had to set editor.renderWhitespace to true:

"editor.renderWhitespace": true

VS Code 1.6.0 and Greater

As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces:

"editor.renderWhitespace": "all", 

Before VS Code 1.6.0

Before 1.6.0, you had to set editor.renderWhitespace to true:

"editor.renderWhitespace": true
Removed edit update which simply added information from another pre-existing answer from several months ago. We don't just combine all the best parts of multiple answers into another accepted answer.
Source Link
Mark
  • 168.7k
  • 26
  • 491
  • 503

VS Code 1.6.0 and Greater

As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces:

"editor.renderWhitespace": "all", 

Before VS Code 1.6.0

Before 1.6.0, you had to set editor.renderWhitespace to true:

"editor.renderWhitespace": true

EDIT: As of VS Code v1.37 (July 2019), a selection option was added to the editor.renderWhitesapce setting and is now the default value. With this option set, whitespace characters will be rendered on highlighted text only.

VS Code 1.6.0 and Greater

As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces:

"editor.renderWhitespace": "all", 

Before VS Code 1.6.0

Before 1.6.0, you had to set editor.renderWhitespace to true:

"editor.renderWhitespace": true

EDIT: As of VS Code v1.37 (July 2019), a selection option was added to the editor.renderWhitesapce setting and is now the default value. With this option set, whitespace characters will be rendered on highlighted text only.

VS Code 1.6.0 and Greater

As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces:

"editor.renderWhitespace": "all", 

Before VS Code 1.6.0

Before 1.6.0, you had to set editor.renderWhitespace to true:

"editor.renderWhitespace": true
added latest option `selection` with source for completeness due to the high visibility of this answer
Source Link

VS Code 1.6.0 and Greater

As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces:

"editor.renderWhitespace": "all", 

Before VS Code 1.6.0

Before 1.6.0, you had to set editor.renderWhitespace to true:

"editor.renderWhitespace": true

EDIT: As of VS Code v1.37 (July 2019), a selection option was added to the editor.renderWhitesapce setting and is now the default value. With this option set, whitespace characters will be rendered on highlighted text only.

VS Code 1.6.0 and Greater

As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces:

"editor.renderWhitespace": "all", 

Before VS Code 1.6.0

Before 1.6.0, you had to set editor.renderWhitespace to true:

"editor.renderWhitespace": true

VS Code 1.6.0 and Greater

As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces:

"editor.renderWhitespace": "all", 

Before VS Code 1.6.0

Before 1.6.0, you had to set editor.renderWhitespace to true:

"editor.renderWhitespace": true

EDIT: As of VS Code v1.37 (July 2019), a selection option was added to the editor.renderWhitesapce setting and is now the default value. With this option set, whitespace characters will be rendered on highlighted text only.

Moves the more recent solution to the top of the answer, which makes things clearer.
Source Link
sdgfsdh
  • 36k
  • 28
  • 147
  • 276
Loading
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot
Loading
Also mention which version of VS Code the new style of setting value is supported.
Source Link
Loading
Rollback to Revision 1
Source Link
revo
  • 48.2k
  • 15
  • 78
  • 121
Loading
expanded explanation and added a result photo
Source Link
Loading
Source Link
revo
  • 48.2k
  • 15
  • 78
  • 121
Loading