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.

[themes] Add `editor.findMatchForeground`

See original GitHub issue

When using Find & Replace, I like to highlight the current search match differently. This is particularly helpful when refactoring and proof-reading, especially if there are many matches.

I can add a colour customisation for editor.findMatchBackground to achieve this. However, as the foreground colour is not editable, I have a contrast issue with the default foreground colour in the theme.

In my case, I’d prefer to set the background colour to something light, like #b2b231 and change the foreground colour of the match to #000000.

Obviously not a pressing issue; a nice to have 👍

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:33
  • Comments:7

github_iconTop GitHub Comments

8reactions
jacobcassidycommented, Feb 6, 2019

Any progress on this issue? Support for TextMate’s “findHighlightForeground” would solve this too. I’m unable to use the “editor.findMatchBackground” as intended because there’s currently no way to change the foreground. Which means when the foreground of the text happens to be the same as the background, it disappears into the block.

See screenshots below for clarity…

First is VSC where the element’s foreground text happens to be the same color as the “editor.findMatchBackground” color:

vsc-match

Then we have SublimeText using findHighlightForeground to set the foreground for the focused match:

sublime-match

5reactions
thisVioletHydracommented, May 26, 2020

image pls add Foreground!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Theme Color | Visual Studio Code Extension API
Theme Color reference that lists all themable colors in Visual Studio Code. ... addedBackground : Editor gutter background color for lines that are...
Read more >
Theme color reference - vscode-docs1 - Read the Docs
You can customize your active Visual Studio Code color theme with the ... addedBackground : Editor gutter background color for lines that are...
Read more >
How to Modify Themes in VSCode - Alvee's Blog
Add and modify the properties you want. Check out the full list of options here. Here's how mine looks with the customizations for...
Read more >
Use workbench.colorCustomizations in extension?
colorCustomizations": { // Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an ...
Read more >
CHANGELOG.md · IKKI/IKKI-VSCode-Dark-Theme - Gitee.com
Add ; Modify; Delete ... All notable changes to the "IKKI-VSCode-Dark-Theme" extension will be ... findMatchForeground; editorOverviewRuler.
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