Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Better Line SelectNew to Visual Studio Code? Get it now.
Better Line Select

Better Line Select

Kai Wood

|
7,438 installs
| (2) | Free
Line selection on steroids
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Better Line Select

Better Line Select lets you expand a line selection in both directions.

Commands

Command Default shortcut macOS shortcut
better-line-select.downward ctrl+l cmd+l
better-line-select.upward ctrl+shift+l cmd+shift+l

You can also run both commands from the Command Palette:

  • Select Line (downward)
  • Select Line (upward)

Example

Put the cursor on a line and press cmd+l or ctrl+l.

The extension selects the whole line, including its newline.

Press it again.

The selection grows by one line.

Press cmd+shift+l or ctrl+shift+l.

The selection grows upward. The lines you already selected stay selected.

Changing The Shortcuts

If the default shortcuts conflict with your setup, remove them in your VS Code keybindings.

Use cmd on macOS. Use ctrl on Windows and Linux.

{
  "key": "cmd+l",
  "command": "-better-line-select.downward"
},
{
  "key": "cmd+shift+l",
  "command": "-better-line-select.upward"
}

Then add your own bindings for:

  • better-line-select.downward
  • better-line-select.upward
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft