Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Join Lines Context AwareNew to Visual Studio Code? Get it now.
Join Lines Context Aware

Join Lines Context Aware

Ian Obermiller

|
449 installs
| (2) | Free
Join lines command that does what you expect with comments and string literals.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Join Lines Context Aware

A language-agnostic, context-aware Join Lines command for VS Code.

Join Lines Context Aware animation

Features

  • Merge string literals - single or double quote, +, ., or nothing as concat operator
  • Merges line and docblock comments (supports //, #, *, ; and '--')
  • Removes trailing commas and omits spaces when merging onto a line with an opening or closing brace ([], {}, (), or <>)

Usage

After installing the extension, add a keybinding for it. The default Join Lines command is ctrl+j or cmd+j on Mac.

{
  "key": "ctrl+j",
  "command": "join-lines-context-aware.join"
}

Release Notes

Users appreciate release notes as you update your extension.

1.0.2

  • Add support for Haskell style comments --, thanks @Release-Candidate

1.0.1

  • Fix joining the first two lines of C-style block comments, thanks @Fbonazzi

1.0.0

  • Initial release, ported from the Join Lines Smarter Atom Extension.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft