Skip to content

editor.findMatch ... Foreground vs HighlightForeground #321195

Closed as duplicate

Description

@piz-chalchagn

Type: Bug

It is intended that

editor.findMatch . . . Foreground => sets the text color of the active search match

editor.findMatch . . . HighlightForeground => sets the text color of all other search matches

The actual behavior is the exact opposite.

Background and HighlightBackground behave as expected (if Background is meant to apply to the active search match and HighlightBackground is meant to apply to all other search matches).

This is a past issue, see for example 34105.

Finally, the Settings editor expects transparency be set for HighlightForeground and High;lightBackground colors. Does not make sense.

For following settings, sample appearance as shown

"workbench.colorCustomizations": {
    "[Monokai Dimmed]": {
        "editor.background": "#000000",
        "editor.findMatchHighlightForeground":"#ff0000", // red
        "editor.findMatchForeground":"#ffff00",          // yellow
        "editor.findMatchHighlightBackground":"#ff00ff", // magenta
        "editor.findMatchBackground":"#00ffff"           // cyan
    }
}
Image

VS Code version: Code 1.124.0 (1b50d58, 2026-06-09T21:29:32-07:00)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs Intel(R) Xeon(R) w7-2495X (48 x 2496)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x10de, DEVICE=0x27b2 [NVIDIA RTX 4000 Ada Generation], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.15.9571 ACTIVE
GPU1: VENDOR= 0x10de, DEVICE=0x27b2 [NVIDIA RTX 4000 Ada Generation], DRIVER_VERSION=32.0.15.9571
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8521
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 127.25GB (104.93GB free)
Process Argv --crash-reporter-id 97746691-9e27-4dad-9373-5e301df3e1b0 --crash-reporter-id 97746691-9e27-4dad-9373-5e301df3e1b0
Screen Reader yes
VM 0%
Extensions (2)
Name Identifier Author Version
Modern Fortran fortran-lang.linter-gfortran fortran-lang 4.0.0
C/C++ ms-vscode.cpptools ms-vscode 1.32.2

Activity

  1. vs-code-engineering commented on Jun 12, 2026

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.124.2. Please try upgrading to the latest version and checking whether this issue remains.

    Happy Coding!

  2. added
    stale
    on Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

staletriage-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions