Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>filter-selectionsNew to Visual Studio Code? Get it now.
filter-selections

filter-selections

awtnb

|
76 installs
| (0) | Free
Select only necessary cursors.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

filter-selections README

This extension reduces the number of selections according to a regular expression or the position of the cursor. Useful when executed after ctrl+shift+l.

Selections that do not match the criteria are cleared, but the cursor itself remains. If you want to remove the cursor itself, use awtnb.cursor-eraser.

Features

Unselect by regexp

  • filter-selections.filter-inclusive: Selections on lines that do not match the specified regular expression will be unselected.
  • filter-selections.filter-exclusive: Selection on lines that matches the specified regular expression will be unselected.

Unselect by position

  • filter-selections.filter-upward: Unselect below the starting position of multi-cursor-mode.
  • filter-selections.filter-downward: Unselect above the starting position of multi-cursor-mode.

The starting point is the cursor position at the beginning of the multi-cursor mode.

configuration

Case-sensitivity is configurable in filter-selections.caseSensitive of setting.json.

Enjoy!

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