一、Ctrl+H 打开替换框
二、在替换框中的源中输入
^(?([^\r\n])\s)*\r?$\r?\n
visio studio删除空行
原文:http://www.cnblogs.com/huangyoum/p/6662369.html