Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Word HighlighterNew to Visual Studio Code? Get it now.
Word Highlighter

Word Highlighter

Seerat

|
2 installs
| (0) | Free
Right-click any word to highlight every occurrence in a color. Highlight a second word in a different color — like Notepad++.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Word Highlighter

Right-click any word, highlight every occurrence in a color. Highlight a second word in a different color. The Notepad++ feature VS Code never shipped.

Built for vscode#291048.

Try it

  1. Open this folder in Cursor or VS Code.
  2. Press F5 (Run Extension).
  3. In the Extension Development Host, open demo/sample.ts.
  4. Right-click userId → Word Highlighter → Highlight Word.
  5. Right-click user → highlight again. A second color lights up.

Keyboard:

Action Windows / Linux macOS
Toggle highlight Ctrl+Alt+H Cmd+Alt+H
Clear all Ctrl+Alt+Shift+H Cmd+Alt+Shift+H
Next occurrence Ctrl+Alt+N Cmd+Alt+N
Previous occurrence Ctrl+Alt+P Cmd+Alt+P

Click a word that's already highlighted to toggle it off. Highlight with Color... lets you pick gold, sky, pink, and the rest of the palette.

How matching works

  • Cursor on a word, no selection → whole-word match (user does not light up userId)
  • Any selection → exact substring match
  • Case-sensitive by default (wordHighlighter.caseSensitive)
  • Highlights survive reloads in the current workspace (wordHighlighter.persistHighlights)

Marketplace note

Text Marker already covers this with ~157k installs, but it has not been updated since early 2023. This extension is the smaller, maintained alternative: right-click, colors, done.

Package a .vsix

npm install
npx @vscode/vsce package

Then Extensions: Install from VSIX... in Cursor or VS Code. After you publish, comment on issue #291048 with the marketplace link — everyone who subscribed gets notified.

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