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
The splitlines() method splits a string into a list. The splitting is done at line breaks.
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.
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.
I always use Ctrl + H (Replace), enable the Regular Expression match (Alt + R) and then execute a replace all on " " to "\n".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With