Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Add line breakNew to Visual Studio Code? Get it now.
Add line break

Add line break

dorian-marchal

|
2,478 installs
| (2) | Free
Add line breaks before/after selections
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Add line break

This extension adds two commands:

  • "Add new line before selection" (extension.addNewLineBeforeSelection): adds a new line before every selection.
  • "Add new line after selection" (extension.addNewLineAfterSelection): adds a new line after every selection.

You can use them via the command palette (e.g. Ctrl + Shift + P, "Add new line before selection") or with these two keybindings:

  • Ctrl + Up ("Push selection up"): extension.addNewLineAfterSelection
  • Ctrl + Down ("Push selection down"): extension.addNewLineBeforeSelection

If needed, you can rebind these shortcuts with Ctrl + Shift + P, "Open Keyboard Shortcuts" (search for "add new line").

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