Sublime Text 2: How to delete blank/empty lines

前端 未结 19 1565
北恋
北恋 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:32

    Sublime Text 2 & 3

    The Comments of @crates work for me,

    Step 1: Simply press on ctrl+H

    Step 2: press on RegEX key

    Step 3: write this in the Find: ^[\s]*?[\n\r]+

    Step 4: replace all

提交回复
热议问题