---
title: "eclipse删除空行"
author: "wangyu"
date: "2013-01-03T19:31:04Z"
tags: []
categories: ["开源软件"]
slug: "eclipse"
draft: false
lastmod: "2013-01-03T19:31:34Z"
id: 1759267
url: "https://wangyu.iteye.com/blog/1759267"
---

1.打开源码编辑器 
2.使用快捷键Ctrl+f 
3.在Find输入框中输入：^\s*\n
3.Replace With输入框的值为空 
4.在【Options】选中的"Regular expressions" 
5.点击【Replace All】按钮。 
6.OK！