在eclipse中删除双倍间距

时间:2014-02-24 14:38:13

标签: java flex flash-builder

我将我的项目导入了eclipse,它变成了双倍间距。有谁知道如何解决这个问题?

尝试:

Find: [\t ]+$ 
Replace With: Nothing //error: incompatible line delimiter

Find: \s*\n 
Replace With: Nothing //error: incompatible line delimiter

Find:  ^\s*\r?\n
Replace With: /R //error: incompatible line delimiter

Find:  ^\s*\r?\n
Replace With: nothing //string not found

Find:  (.)\r\n(.)
Replace With: nothing //string not found

File > Convert Line Delimiters to > Windows //no changes

Source > Apply Formatting //grayed out

CTRL + Shift + F //doesn't remove double spaces

2 个答案:

答案 0 :(得分:0)

您是否尝试过(当然使用正则表达式检查):

查找:^ \ s * \ r?\ n

替换为:\ R

找到一行或双行并用一行替换它。

修改

有一篇相关的帖子,也许其中一个答案适合您:Remove empty lines in eclipse code editor by find/replace (Ctrl+F)

答案 1 :(得分:0)

project properties我转到flexFormatter并将选项keep this many blank lines更改为0.