Can I adjust the "100+ matches in X files" from Intellijs "find in path"

Intellij Idea

Intellij Idea Problem Overview


Is it possible to change the max value of shown results in the "find in path" feature in intellij? enter image description here

I sometimes wished that I would see more results. of course I would need to scroll much more, but that's what I want. Can I change that number 100 to like 200, 1000 or even maybe endless?

Intellij Idea Solutions


Solution 1 - Intellij Idea

Update: 2021-05-06

Thanks to "Dmitry Jemerov" from JetBrains/IntelliJ for a update on this old topic.

Dmitry says

"In 2021.2 the limit is configurable in Settings | Advanced Settings | Maximum number of results to show in Find In Path/Show Usages preview"

If you don't have that version then the below still applies.


Update: 2018-08-20

https://youtrack.jetbrains.com/issue/IDEA-157855

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206164739--More-than-100-matches-in-search

Thanks to "Andrey Dernov" from JetBrains/IntelliJ for answer.

Andrey said: >You can set ide.usages.page.size - IntelliJ Registry option. (Help | Find Action... type Registry and set the value in dialog):

This has helped me a lot for large project refactoring.

IntelliJ Idea Registry Screenshot enter image description here

IntelliJ Idea Find in Path Screenshot enter image description here

Solution 2 - Intellij Idea

Edit: This answer is outdated. You can now set the parameter ide.usages.page.size to increase the number of displayed findings. See RoryGS' answer for details.

Old answer:

Currently you only have the option to hit the Open in Find Window button (in the bottom right). But there is an open issue for IntelliJ to change this limit: https://youtrack.jetbrains.com/issue/IDEA-16377</s> https://youtrack.jetbrains.com/issue/IDEA-157855

Find window

Solution 3 - Intellij Idea

For JetBrain's IDEs in 2021, Help > Edit Custom VM Options, then add -Dide.usages.page.size=200 for 200 results. Adjust as desired. Restart the IDE for changes to take effect.

Add/adjust more VM options you like as well, like max memory usage for example.

JetBrains 2021

Solution 4 - Intellij Idea

My guess is that you want to see more than 100 matches in the preview so that you can easily skim through the search results, including the context of the lines before and after each occurrence. You can get the same effect, with more than 100 matches, by turning on the Preview Occurrences mode after finding all results by clicking Open in Find Window.

Preview Occurrentces setting in WebStorm

Solution 5 - Intellij Idea

For anyone wanting to update it outside of the IDE this registry property lives in the file:

YourInstall/options/ide.general.xml

and looks like this:

<application>
  ...
  <component name="Registry">
    <entry key="ide.usages.page.size" value="1001" />
    ...
  </component>
  ...
</application>

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBAERUSView Question on Stackoverflow
Solution 1 - Intellij IdeaRoryGSView Answer on Stackoverflow
Solution 2 - Intellij IdeaSebastianView Answer on Stackoverflow
Solution 3 - Intellij IdeaDrakesView Answer on Stackoverflow
Solution 4 - Intellij IdeaMatthew MarichibaView Answer on Stackoverflow
Solution 5 - Intellij IdeaBlundellView Answer on Stackoverflow