java - 删除eclipse中的双倍间距

标签 java apache-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

最佳答案

您尝试过吗(当然要启用正则表达式检查):

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

替换为:\R

这会找到一行或双行并将其替换为一行。

编辑:

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

关于java - 删除eclipse中的双倍间距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21990826/

相关文章:

java - 如何使用安装程序创建 exec 并自动运行文件

java - 构建从本地主机到 google.com 的套接字时出现错误

css - Flex 4.5 应用程序背景颜色不会变黑

xml - Flex中可变的声音

apache-flex - 如果我将 apache flex sdk 4.9.1 添加为我的编译器,我可以在 fb 4.6 中使用设计模式吗?

ios - 如何分发内部使用 Adob​​e Air 制作的第 3 方 iOS 应用程序

java - 将程序代码转换为面向对象的技巧

java - 首选项屏幕中的自定义列表首选项对话框布局,带有自定义列表项

oracle - Web界面编程环境可替代基于Delphi的旧系统

flash - Flash或Flex是否更好地构建了用户交互式订购“向导”网站?