Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Mouse Word HighlightNew to Visual Studio Code? Get it now.
Mouse Word Highlight

Mouse Word Highlight

luutuankiet

|
13 installs
| (0) | Free
Highlights every occurrence of a word in the scrollbar overview ruler when you select it with the mouse — restores occurrence markers in vscode.dev where the semantic language service runs in partial mode.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Mouse Word Highlight

A small VS Code extension that runs in the browser (vscode.dev / github.dev) as well as on the desktop. It does two things.

Features

Highlight every occurrence of a word

Select a word with the mouse (double-click) and every other occurrence is marked in the scrollbar's overview ruler. This restores the occurrence markers the full language service normally provides — handy in vscode.dev, where that service runs in partial mode.

Copy files as LLM context (right-click)

Right-click any file or folder in the Explorer to copy its contents to the clipboard, wrapped for pasting into an LLM. Folders are walked recursively and binary files are skipped:

<context>
<file src="src/app.ts">
…file contents…
</file>
</context>

There are two variants:

  • Copy selected files content to clipboard — contents verbatim.
  • Copy selected files content to clipboard (compressed) — strips comments from recognised source files (TS/JS, Python, Go, Rust, Java, C/C++, and more) to cut token count, while keeping code, doc comments, and Python docstrings. Data files (JSON, YAML, …) pass through untouched. The result is marked <context compressed="true">, and a notification reports how much smaller it came out.

Settings

Setting Default Description
mouseWordHighlight.triggerOnMouseOnly true Only highlight on mouse selections. Turn off to also highlight whole-word keyboard selections.
mouseWordHighlight.maxMatches 2000 Cap on how many occurrences are decorated in very large files.

License

MIT

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