leo*_*o12 5 eclipse history replace
查找/替换对话框显示最后8个条目.该对话框通过Ctrl + F显示.我想增加"查找"和"替换为"输入字段的历史记录中显示的条目数.我必须搜索并替换几个字符串和正则表达式.因此我一次又一次地键入字符串和正则表达式......
(我不是指文件内容更改的"限制历史记录大小".)
小智 2
Eclipse 中存在一个针对此功能请求的未解决错误(该错误创建于 2004 年 8 月,距今已有 10 多年历史):
[查找/替换]组合框需要记住更多项目(https://bugs.eclipse.org/bugs/show_bug.cgi?id=72151)
请随意投票支持此错误,或对其发表评论以尝试解决它。
该bug已经有补丁文件,你也可以尝试将其注入到你自己的Eclipse中。
Index: src/org/eclipse/ui/texteditor/FindReplaceDialog.java
===================================================================
RCS file: /home/eclipse/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java,v
retrieving revision 1.49
diff -u -r1.49 FindReplaceDialog.java
--- src/org/eclipse/ui/texteditor/FindReplaceDialog.java 25 Feb 2005 15:14:47 -0000 1.49
+++ src/org/eclipse/ui/texteditor/FindReplaceDialog.java 6 Apr 2005 13:36:01 -0000
@@ -140,8 +140,11 @@
}
}
- /** The size of the dialogs search history. */
- private static final int HISTORY_SIZE= 5;
+ /** The size of the dialogs search history.
+ * Users don't like retyping long regex patterns,
+ * so give them lots of history.
+ */
+ private static final int HISTORY_SIZE= 30;
private Point fLocation;
private Point fIncrementalBaseLocation;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
688 次 |
| 最近记录: |