Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Smart EndNew to Visual Studio Code? Get it now.
Smart End

Smart End

Maikurosofuto

|
3 installs
| (0) | Free
Pressing End moves the cursor to the last code character (ignoring inline comments). Pressing End again moves it to the true end of the line.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Smart End Key for VS Code

Smart End Key is a Visual Studio Code extension that enhances the behavior of the End key.
Instead of always jumping to the very end of the line, it toggles between:

  1. The last code character of the line (ignoring inline comments and trailing whitespace).
  2. The true end of the line (after comments and spaces).

This makes navigating code with inline comments much faster and more intuitive — similar to how Smart Home toggles between the start of the line and the first non‑whitespace character.


✨ Features

  • Press End once → cursor moves to the end of the code (before inline comments).
  • Press End again → cursor moves to the actual end of the line.
  • Works with multiple cursors/selections.
  • Supports common inline comment markers (//, #, --).
  • Lightweight and fast — no configuration required.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft