Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the "editorWhitespace.foreground" workbench.colorCustomizations setting in VSCode actually work?

I'm using version 1.13 of VSCode on the Mac. I'd like to override the theme colour for whitespace. Following the docs:

editorWhitespace.foreground: Color of whitespace characters in the editor.

https://github.com/Microsoft/vscode-docs/blob/master/docs/getstarted/theme-color-reference.md

I have put this in the settings:

  "workbench.colorCustomizations": {
    "editorWhitespace.foreground": "#333",
    "editorIndentGuide.background": "#333"
  }

The "editorIndentGuide.background" has an effect, but "editorWhitespace.foreground" doesn't. Am I doing something wrong?

UPDATE: To clarify, when the whitespace is visible the spaces are indicated with white dots. I'm expecting to be able to change the colour of the dots to, say, #333 with the "editorWhitespace.foreground" setting.

like image 752
k7n4n5t3w4rt Avatar asked Jun 21 '17 01:06

k7n4n5t3w4rt


2 Answers

Yes, it does for me on Windows 10. I assume you have "Toggle Render Whitespace" under View menu on? What color is your editor background, perhaps it is too close to #333 to appear obvious.

enter image description here

like image 61
Mark Avatar answered Sep 18 '22 01:09

Mark


I had an issue with this when specifically using the Default High Contrast theme. This has been fixed with the August 2017 release.

like image 35
David Zulaica Avatar answered Sep 19 '22 01:09

David Zulaica