Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Line Range SelectionNew to Visual Studio Code? Get it now.
Line Range Selection

Line Range Selection

Octomon

|
1 install
| (0) | Free
Select a range of lines quickly
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Version Installs Rating

🧩 Line Range Selection

Select a specific range of lines in your code instantly, no more endless scrolling.

Demo Video 1

Usage

  1. Open the Command Palette (Ctrl + P / Cmd + P on macOS)

  2. Run the command:

    Line Range: Select Range
    
  3. Enter your desired range selector

💡 Tip: Press Ctrl + M (Cmd + M on macOS) to open the range input even faster.


Range Selectors

Selector Description Example
+<start-line> Selects all lines from <start-line> to the end of the file +10 → selects from line 10 to the end
-<start-line> Selects all lines from <start-line> to the beginning of the file -10 → selects from line 10 to the start
<start>-<end> Selects all lines from <start> to <end> 4-10 → selects lines 4 through 10

Feedback & Contributions

Found a bug or have an idea to make this extension better? Feel free to open an issue or submit a pull request on GitHub :)

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