Highlight the same words in text files in Eclipse

Is it possible to highlight the same words in text files in Eclipse. I know that eclipse is highlighting Java code.

But can we also somehow enable the selection of the same words in text files?

The same function is in Notepad ++. If we select a word, it will highlight all the same words in the entire file.

notepad ++ highlight

+4
eclipse text highlight notepad ++
Sep 06 '12 at 13:21
source share
2 answers

If you turn on "Mark Occurrences" (Alt + Shift + O), then all words that match the ones you marked will be highlighted.

enter image description here

+3
Sep 06
source share

Well, if you search only in an open file (via CTRL-F), then no, you cannot select everything.

However, if you use the advanced search (CTRL-H, then go to the β€œFile Search” tab), you can enter a search template, as well as a file name template for the files where it should be searched, and when the search is performed, the search terms are highlighted in each file where they were found:

enter image description here

+1
Sep 06
source share



All Articles