Sublime Text 2: How to delete blank/empty lines

前端 未结 19 1534
北恋
北恋 2020-12-12 09:02

Let\'s say I had a text file with the following nine lines:

foo

bar

baz

qux

quux

How can I use Sublime Text 2 to remove all four of the

相关标签:
19条回答
  • 2020-12-12 09:41

    There's also "Join lines". If on OSX, select all your text, and press CMD-J a few times, and it will collapse your selection by line, removing the line breaks.

    Edit: This approach will leave you with everything on one line, which is not what you asked for.

    0 讨论(0)
提交回复
热议问题