Make Eclipse's Incremental Find wrap around the end of the page

By | January 12, 2018
Questions:

In Eclipse you can hit Ctrl + J to use Incremental Find which is awesome. But if you start out half way down the page, and try to find something in the top half it won’t find it because it doesn’t wrap around, it stops at the bottom of the page. So I often end up jumping to the top of the page, just to incremental find to the middle.

Is there a way to force incremental find to wrap around the bottom of the page?

Note: I realize there is also Ctrl + Shift + J to do a reverse incremental find, but that has the same limitations.

Answers:

So I finally figured out that if you hit Ctrl + J the first time, it won’t wrap so it won’t find the top half. If you hit Ctrl + J a second time it will wrap and search the entire page.

Just hit Ctrl + J again.

Questions:
Answers:

A close but not direct solution is to use the old way of Ctrl + F, and check the “Wrap search” and “Incremental” options.

Questions:
Answers:

There is a plugin for better incremental search that does wrap around by default, I use it everyday.

https://code.google.com/p/eclipse-glance/

Leave a Reply

Your email address will not be published. Required fields are marked *