How to clear search history in Eclipse?

I am using Eclipse Ganymede 3.4.2. The search bar in Search and Find / Replace becomes cluttered from previous searches. Is there any way to clean them?

I tried to clear the cache files in $workspace/.metadata/.plugins/org.eclipse.core.resources/.history/, but this does not help.

EDIT:
To clear the file search history, go to .metadata\.plugins\org.eclipse.search\dialog_settings.xmland in the TextSearchPage section, clear the history sections (e.g. <section name="HISTORY0">) and change the HISTORY_SIZE value to 0.

To clear the Java search history, go to .metadata\.plugins\org.eclipse.jdt.ui\dialog_settings.xmland do the same in the JavaSearchPage section.

To clear your remote search history, go to .metadata\.plugins\org.eclipse.rse.ui\dialog_settings.xmland do the same in the RemoteSearchPage section.

Don't know how to clear search / replace history.

+5
source share
2 answers

Please open the .metadata.plugins \ org.eclipse.search \ dialog_settings.xml file in your workspace.

Search seaction TextSearchPage. Clear section history. Be careful with the HISTORY_SIZEsection in this tag.History

I mean, if <item value="2" key="HISTORY_SIZE"/> <section name="HISTORY0">it <section name="HISTORY1">works.

Launch eclipse.

To search / replace

.metadata\.plugins\org.eclipse.ui.workbench.texteditor\dialog_settings.xml

find findhistory. You will see findHistory and replaceHistory.

+5
source

Just delete the .metadata file and it will completely disappear from your story!

-1
source

All Articles