Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Simple Line FilterNew to Visual Studio Code? Get it now.
Simple Line Filter

Simple Line Filter

RiisDev

|
1 install
| (0) | Free
Keep or remove lines matching the Find widget search.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Simple Line Filter

Keep or remove every line matching your Find search, using the real Find widget (so Match Case, Whole Word and Regex all work).

  1. Ctrl+F, type a search, set the toggles.
  2. Run Simple Line Filter: Keep Lines Matching Find (Ctrl+Alt+K) or Remove Lines Matching Find (Ctrl+Alt+D) — keybindings are active while the Find widget is open; the commands are also in the Command Palette.

Acts on the whole file. Undo with Ctrl+Z.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft