Sublime Forum

Removing line break and all spaces on the next line

#1

Hello everyone!
I have a rather trivial question. Sometimes these’s a need to remove a line break and all the spaces after this break (from the second line). For example when you copy-paste an element from Chrome DOM inspector.
In that case it has such look:
http://img538.imageshack.us/img538/5813/LCHqMf.png

I want to place the cursor near the double quotes, press a shortcut and it should look like this:

Currently I’m doing it the long way: Shift+Down, Shift+Home, Del.
Maybe there’s a quick way to do so?

Thanks!

1 Like

#2

“join lines”

ctrl + J on windows

1 Like

#3

I do this a lot as well - CMD or CTRL + L to select all the lines and then CMD or CTRL + J to join them in one shot.

Or as prmaple said, hit CMD or CTRL + J a few times

0 Likes

#4

Thank you guys!

0 Likes