vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Provide option to change the color of whitespaces

Open papaiatis opened this issue 10 years ago • 13 comments

Please provide an option to change the color (argb) of whitespaces when editor.renderWhitespace is enabled. I like the dark background but I can't really see the whitespace markers on it, which are also dark.

papaiatis avatar Apr 27 '16 12:04 papaiatis

// @alexandrudima

egamma avatar Apr 27 '16 13:04 egamma

@papaiatis The colors for the whitespace is taken from the invisibles property in themes, so the color is customizable via themes.

e.g. https://github.com/Microsoft/vscode/blob/5b9ec15ce526decc5dd0488339e798f6bcb4ec46/extensions/theme-monokai/themes/Monokai.tmTheme#L19

alexdima avatar Apr 27 '16 13:04 alexdima

Ah okay. So I need to create a new Theme myself and adjust this color. According to this page I need to specifiy an existing theme to be based on my theme on. So where is the default dark theme located on Linux? I couldn't find it.

papaiatis avatar Apr 27 '16 14:04 papaiatis

@aeschli What is the easiest way for @papaiatis to create a custom theme based on our default dark theme?

alexdima avatar Apr 27 '16 15:04 alexdima

Create your own extension and start with vscode/extensions/theme-defaults/themes/dark_vs.json. If you like the colorful dark them add the rules from vscode/extensions/theme-defaults/themes/dark_plus.json in there.

aeschli avatar Apr 27 '16 16:04 aeschli

This ability exists through themes => closing this

alexdima avatar Aug 29 '16 12:08 alexdima

Changing the color for invisibles has no effect, at least not in Python and C. Theme bug? TM Scopes bug?

https://stackoverflow.com/questions/43034430/color-scheme-for-whitespace

mikelward avatar Mar 26 '17 20:03 mikelward

perhaps a regression ... @aeschli ?

alexdima avatar Mar 27 '17 08:03 alexdima

Hmm, I can't repro. TM Scopes not showing a token is probably expected for whitespace. Sorry for the noise.

mikelward avatar Mar 28 '17 00:03 mikelward

Now it seems like the whitespace color is white all the time, regardless what theme I pick.

felix-bohlin avatar Jun 15 '17 07:06 felix-bohlin

@Flerox Coloring the whitespace seems to work for me: image

Please file a new bug that gives more details so we can reproduce.

aeschli avatar Jun 15 '17 08:06 aeschli

@aeschli This is the result for me. The arrow color changes when I switch theme, but I can't seem to overwrite it. whitespace

If there isn't a simple solution to that, I'll file a bug report.

FelixBLimetta avatar Jun 15 '17 08:06 FelixBLimetta

@Flimetta What version of VSCode? Are the settings saved and not overwritten by workspace settings? Can you check with dev tools (Help > Toggle Developer Tools) what styles are applied? image

aeschli avatar Jun 15 '17 09:06 aeschli