Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Selection Foreground AlternativeNew to Visual Studio Code? Get it now.
Selection Foreground Alternative

Selection Foreground Alternative

suxscribe

|
125 installs
| (3) | Free
Enhance visibility of selected text
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

selection-foreground - Selection Foreground Alternative

This extension allows to change color of selected text and kinda implements functionality of native editor.selectionForeground property (which doesn't work currently).

So now you can use contrast selection background color and see things clearly.

Section Decoration Example

Notes

It renders with a bit of delay, it's because of the way VSCode decorators work.

Features

  • Automatically highlights selected text with a specified color
  • Supports multiple selections

Configuration

  • selection-foreground.textColor - color of selected text (default: #000000)
  • selection-foreground.enabled - enable/disable extension (default: true)

Usage

  1. Set color via settings or with selection-foreground.textColor property

  2. Command Palette: Selection Foreground: Toggle

  3. You will probably want to set contrast colors:

    • editor.selectionBackground
    • editor.inactiveSelectionBackground
    • editor.findMatchBackground
  4. Select something

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft