Removing empty lines in Notepad++

前端 未结 22 1838
时光取名叫无心
时光取名叫无心 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 00:49

    1. Press ctrl + h (Shortcut for replace).
    2. In the Find what zone, type ^\R ( for exact empty lines) or ^\h*\R ( for empty lines with blanks, only).
    3. Leave the Replace with zone empty.
    4. Check the Wrap around option.
    5. Select the Regular expression search mode.
    6. Click on the Replace All button.

提交回复
热议问题