Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Insert Cursor at Beginning of Each Line SelectedNew to Visual Studio Code? Get it now.
Insert Cursor at Beginning of Each Line Selected

Insert Cursor at Beginning of Each Line Selected

Kai Wood

|
3,412 installs
| (2) | Free
Inserts multiple cursors at the beginning of each selected line – instead of inserting them at the end.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Insert Cursor at Beginning of Each Line Selected

Features

This extension overwrites the shortcut for editor.action.insertCursorAtEndOfEachLineSelected (shift+alt+i) and will insert the cursors at the start of the selection, instead of the end.

Extension Settings

If you don't like the opinionated shortcut of this extension and want to keep VS Code's default, you can either unbind this extension's shortcut:

{
    "key": "shift+alt+i",
    "command": "-insert-cursor-at-beginning-of-each-line-selected.insertCursors"
}

Or rebind the default command:

{
    "key": "shift+alt+i",
    "command": "editor.action.insertCursorAtEndOfEachLineSelected",
    "when": "editorTextFocus"
}

Development

npm install
npm run compile
npm test

Release Notes

Unreleased

  • Modernized the extension build, test, and packaging tooling for current VS Code.
  • Added integration coverage for the cursor insertion command.
  • Invoking the command without an active editor is now a no-op.

1.0.0

Initial release

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