Skip to main content
Noble Desktop/1 min read

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.

Join Lines in Sublime Text

Learn more Sublime Text Coding Tips. These coding tips are covered in our hands-on coding classes and bootcamps in NYC.