Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Split lines on spaces in Sublime Text

How can i split lines in Sublime Text 3? I tried ctrl+t, ctrl+x

but it does not work.

I have line such as

this is a sentence

i would like to make it

this
is
a
sentence
like image 973
Imi Avatar asked Mar 16 '15 18:03

Imi


People also ask

How do I split a line in a string?

The splitlines() method splits a string into a list. The splitting is done at line breaks.

How do I get multiple cursors in Sublime Text?

While you can place multiple text cursors in Sublime Text with Cmd–Click (Mac) or Ctrl–Click (Windows), here's another technique that comes in handy. Hold Ctrl–Shift (Mac) or Ctrl–Alt (Windows) and hit Up or Down Arrow to place an additional text cursor above or below the current cursor.

How edit multiple lines sublime?

To select multiple regions using the keyboard, select a block of text, then press Ctrl+Shift+L to split it into one selection per line. When you're done with using multiple selections, just press Ctrl+K to trim all but the first.


1 Answers

I always use Ctrl + H (Replace), enable the Regular Expression match (Alt + R) and then execute a replace all on " " to "\n".

like image 107
Renato Avatar answered Sep 28 '22 03:09

Renato