Split lines on spaces in Sublime Text

Imi picture Imi · Mar 16, 2015 · Viewed 17.8k times · Source

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

Answer

Renato picture Renato · Mar 16, 2015

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