Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 306
BAERUS Avatar asked Jun 28 '17 13:06

BAERUS


3 Answers

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

like image 67
RoryGS Avatar answered Nov 07 '22 16:11

RoryGS


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 https://youtrack.jetbrains.com/issue/IDEA-157855

Find window

like image 26
Sebastian Avatar answered Nov 07 '22 17:11

Sebastian


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

like image 4
Matthew Marichiba Avatar answered Nov 07 '22 17:11

Matthew Marichiba