join-lines-smarter
A smarter, language-agnostic Join Lines command.
ianobermiller 379 1 2.0.1 MIT GitHub

join-lines-smarter

A smarter, language-agnostic Join Lines command. https://atom.io/packages/join-lines-smarter

  • 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 <>)

Animated screenshot of Join Lines Smarter

TIP: use with split-string-on-enter and dockblockr to get the reverse; adding concatenation operators and leading comments when entering a new line.