Remove blank line in Eclipse

前端 未结 7 1690
梦毁少年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条回答
  •  Happy的楠姐
    2021-01-30 02:32

    I was suprised that for XML files edited with Eclipse there is a good solution:

    • Select the checkbox value named 'Clear all blank lines' in Formatting panel Window->Preferences->XML->XML Files-> Editor

    • Save and use the "Ctrl+Shift+F' shortcut

    The blank lines will dissappear!

提交回复
热议问题