Removing empty lines in Notepad++

前端 未结 22 1882
时光取名叫无心
时光取名叫无心 2020-11-28 00:04

How can I replace empty lines in Notepad++? I tried a find and replace with the empty lines in the find, and nothing in the replace, but it did not work; it probably needs r

22条回答
  •  甜味超标
    2020-11-28 01:05

    You can follow the technique as shown in the following screenshot:

    • Find what: ^\r\n
    • Replace with: keep this empty
    • Search Mode: Regular expression
    • Wrap around: selected

    NOTE: for *nix files just find by \n

提交回复
热议问题