逐行删除空行麻烦,用Eclipse查找替换功能,默认快捷键:Ctrl + F,需要勾选上“Regular expressions”。 Find: ^\s*\n Replace with: 使用替换功能 相关文章: