1. 使用快捷键Ctrl + F,弹出查找/替换对话框,具体设置如下: (1)在Find输入框中输入:^\s*\n (2)Replace With输入框的值为空 (3)在【Options】选中的"Regular expressions"