Join Lines in Sublime Text
Join Lines Shortcut
Mac
Cmd-J — joins the current line with the next.
Windows / Linux
Ctrl-J — same behavior.
Multi-Line Join
Select multiple lines first to collapse them all into one.
Useful For
Cleaning up multi-line code statements you want on a single line.
Master Web Development at Noble Desktop
Noble Desktop's Full-Stack Web Development Certificate covers HTML, CSS, JavaScript, and the modern web stack.
Sublime Text allows you to quickly join lines together. Select the lines and hit Cmd–J (Mac) or Ctrl–J (Windows).
If nothing is selected, Sublime Text will join the line below to the current line.
