question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[theming] editor.selectionForeground is not working

See original GitHub issue
  • VSCode Version: Code 1.17.2 (b813d12980308015bcd2b3a2f6efa5c810c33ba5, 2017-10-16T13:57:00.652Z)
  • OS Version: Linux x64 4.8.0-59-generic

Steps to Reproduce:

  1. Add customization for workbench.colorCustomizations.editor.selectionForeground
  2. Save settings

Expected result: a text selection should use the configured foreground color Actual result: it doesn’t.

I notice that the tooltip in the settings editor says “Color of the selected text for high contrast”. I’m not sure what that means, my only thought was that it might apply to the “High Contrast” theme I see mentioned in the docs. I tried to switch to that theme, but it doesn’t make any difference whatsoever (seriously, none at all - it’s weird because I thought I did that before and things looked different then - is high contrast broken now?).

In any case, I’d like to see selection foreground color implemented regardless of theme. For presentation purposes, I want a bright selection background color (my preference is bright yellow), and this is generally incompatible with any kind of syntax-highlight colored text.

image

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:34
  • Comments:43 (3 by maintainers)

github_iconTop GitHub Comments

19reactions
equinusociocommented, Jul 10, 2019

Bump. Syntax highlighters use many colours, is very hard to set a selection background color that allow an acceptable contrast with the selected text. I can suggest to remove all the token colors for selected text in order to inherit the color from another token, like the editor.foreground or something else.

15reactions
oliversturmcommented, Oct 7, 2019

@aeschli This issue will be two years old soon and I’m reminded every time I present using VS Code. Can we ever expect something to be done about this? It really doesn’t look like a satisfactory solution would be too complicated…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I specify selection foreground in VS Code (without ...
This issue mentions making that setting apply to all themes: https://github.com/microsoft/vscode/issues/36490. How exactly would I do that?
Read more >
Theme Color | Visual Studio Code Extension API
selection.background : Background color of text selections in the workbench (for input fields or text areas, does not apply to selections within the...
Read more >
Theme color reference - vscode-docs1 - Read the Docs
background : Background color of text selections in the workbench (for input fields or text areas, does not apply to selections within the...
Read more >
https://raw.githubusercontent.com/microsoft/vscode...
Theme Color You can customize your active Visual Studio Code [color ... Some colors should not be opaque in order to not cover...
Read more >
CHANGELOG.md · IKKI/IKKI-VSCode-Dark-Theme - Gitee.com
All notable changes to the "IKKI-VSCode-Dark-Theme" extension will be documented in this file. ... selectionForeground; editor.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found