Remove blank line in Eclipse

前端 未结 7 1524
梦毁少年i
梦毁少年i 2021-01-30 01:45

How can I remove lines that only contain spaces when using Eclipse Find/Replace prompt. I checked the \"Regular Expression\" check box, and tried the following, neither of whic

7条回答
  •  醉梦人生
    2021-01-30 02:11

    Many thanks to lamamac. In genereal, when you want to do search replace with regular expressions in eclipse the $ sign doesn't work as it should. Use '\s*\n' instead of '$'

提交回复
热议问题