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

|
2 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

  • Select Lines by Number: select lines.
  • Replace Document with Filtered Lines: select lines and delete the other ones.

Release Notes

1.0.0

Add history.

0.0.1

Initial release.

Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

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