Clear out "Recent Searches" in Find menu...

Is there a way we can clear out the history list of "Recent Searches" in the Find menu dropdown?

I've got some really, really long strings in there that are making this dropdown window full width of a screen and then some, blowing things way out of proportion, and it would be nice if we could just clear out that history all together somehow.

Thanks.

3
5 comments

Hi there,

Sure .. but not via GUI (typical for me Shift+Del or Ctrl+Del do not have any effect on the list).

You can do this manually by editing config file:

  • Close this project in IDE
  • Navigate to PROJECT_ROOT/.idea -- that's where this project settings are stored
  • Open workspace.xml file in any plain-text editor (e.g. Notepad++ on Windows etc)
  • Find and delete whole <component name="FindInProjectRecents"> node (or just delete individual child entries -- e.g. <find>searcth-string-here</find>)
1

Actually, that's not the one I was looking for... but you've given me an idea on where to look for and what to look for, so I found it under C:\Users\user\.PhpStorm2017.1\config\options as <component name="FindRecents">... 

Thanks!

 

0

Well ... based on your description I thought that you wanted to clear on page Find (Ctrl+F) which is project specific.

Based on your last comment -- you wanted to clear results in "Find in Path" .. which is stored as IDE-wide setting indeed. (NOTE: IDE better be closed if you are editing these files)

0

Had the same issue and found this thread. In InelliJ 2022.1 and win 10 the <component name="FindInProjectRecents"> is located in %appdata%\JetBrains\IntelliJIdea2022.1\workspace\. Find the matching file and remove the mathing <find>/<replace> tags.

2

Please sign in to leave a comment.