Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Center Editor WindowNew to Visual Studio Code? Get it now.
Center Editor Window

Center Editor Window

Kai Wood

|
36,929 installs
| (20) | Free
Centers your editor window at the current cursor position
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Center Editor Window

This extension centers your editor window at the current cursor position. Default shortcut is ctrl-l.

Centering the window

New in 2.1: Additional setting center-editor-window.threeStateToggle: true/false to enable toggling between centering the current line center, moving it to the top of the viewport and moving it to the bottom.

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