我正在使用Eclipse Ganymede 3.4.2。搜索和查找/替换中的搜索栏与以前的搜索相混淆。有没有办法清除它们?
我尝试清除$workspace/.metadata/.plugins/org.eclipse.core.resources/.history/
中的缓存文件,但它没有帮助。
编辑:
要清除文件搜索历史记录,请转到.metadata\.plugins\org.eclipse.search\dialog_settings.xml
,然后在TextSearchPage部分下,清除历史记录部分(例如<section name="HISTORY0">
)并将HISTORY_SIZE值更改为0.
要清除Java搜索历史记录,请转到.metadata\.plugins\org.eclipse.jdt.ui\dialog_settings.xml
并在JavaSearchPage部分下执行相同的操作。
要清除远程搜索历史记录,请转到.metadata\.plugins\org.eclipse.rse.ui\dialog_settings.xml
并在RemoteSearchPage部分下执行相同的操作。
仍然不知道如何清除查找/替换历史记录。
答案 0 :(得分:5)
请在你的作品中打开文件.metadata.plugins \ org.eclipse.search \ dialog_settings.xml。
搜索seaction TextSearchPage
。
清除部分历史。
在此标记中,请注意HISTORY_SIZE
和History
我的意思是<item value="2" key="HISTORY_SIZE"/>
<section name="HISTORY0">
和<section name="HISTORY1">
有效。
启动eclipse。
查找/替换
.metadata\.plugins\org.eclipse.ui.workbench.texteditor\dialog_settings.xml
搜索findhistory
。你会看到findHistory和replaceHistory。
答案 1 :(得分:-2)
只需删除您的.metadata文件,它就可以解决您的所有历史记录!