Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse does not return to the beginning of the file in Find/Replace

When I use Find/Replace in Eclipse (Helios Service Release 2), it does not find the words above my current location even it reaches to the end of file and I have to set Direction to Backward.

I remember the eclipse (maybe indigo) was returning to the beginning of file when it reached to the end.

Is there any setting for this?

like image 384
Bobs Avatar asked Sep 11 '13 09:09

Bobs


People also ask

How do I find and replace an entire project in Eclipse?

Search->File menu (also accessible using Ctrl+H , then navigate to File tab), enter the text to search for, hit the Replace... button which will give you another dialog where you can replace text.

How do I find and replace text in eclipse?

Press Ctrl + H or look in the Search menu for Search>Search or Search>File depending on version. At bottom of dialog box, click Replace... There you'll find the replace in files functionality.

How minimize find and replace in eclipse?

Press Ctrl + J or Ctrl + Shift + J to go to the next or previous match. Press Enter or Esc to exit incremental find mode.


2 Answers

As you have already found the answer. Just adding the official page which describes this feature in eclipse.There is a wrap search option for this.

From the docs:-

Select the Wrap Search checkbox if you want the dialog to continue from the top of the file once the bottom is reached (if you find / replace in Selected Lines only, then this option applies to those lines only)

Below is the screen shot for the same:-

enter image description here

like image 148
Rahul Tripathi Avatar answered Sep 18 '22 19:09

Rahul Tripathi


According to the greg-449's answer: There is the 'Wrap search' option on the Find/Replace dialog itself.

like image 37
Bobs Avatar answered Sep 19 '22 19:09

Bobs