我将我的项目导入了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
答案 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.