Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Select Lines by NumberNew to Visual Studio Code? Get it now.
Select Lines by Number

Select Lines by Number

Maikurosofuto

|
19 installs
| (0) | Free
Select lines by their number. Eg: 5, 12-16
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Select Lines by Number

This extension can select lines by their numbers and also delete the other lines.

The input can include any amount of lines separated by comma and can use ranges with -.

Example:

5, 10-12, 16-20 selects the lines 5, 10 to 12 and 16 to 20.

Features

Command Palette:

  • slbn: Select Lines by Number: select lines.
  • slbn: Replace Document with Filtered Lines: select lines and delete the other ones.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft