Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Stop at Line BoundariesNew to Visual Studio Code? Get it now.
Stop at Line Boundaries

Stop at Line Boundaries

BG4JEC

| (0) | Free
Makes Left/Right Arrow stop at the beginning/end of the current line instead of crossing the real newline.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Stop at Line Boundaries

Prevents the Left and Right Arrow keys from crossing real line breaks.

Features

  • → stops at the end of the current line.
  • ← stops at the beginning of the current line.
  • Prevents accidental movement into adjacent lines.
  • Supports multiple cursors.
  • Selection collapsing behaves like normal arrow keys.

Example

Instead of:

abc| ↓

abc |

The cursor stays at:

abc|

And:

|abc ↓

| abc

becomes:

|abc

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