Highlight same words in text files in Eclipse

2019-06-21 04:30发布

Is there any option to highlight same words in text files in Eclipse. I know that eclipse is highlighting java code.

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

The same function is in Notepad++. If we select some word it will highlight all the same words in the whole file.

notepad++ highlight

2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-06-21 04:30

Well if you're searching in the currently open file only (via CTRL-F) then no, you can't have everything highlighted.

However if you use the advanced search (CTRL-H, then go to "File search" tab) there you can input the search pattern, as well as the file-name pattern for the file(s) where it should search, and when the search is done, the search terms are highlighted in each file where they were found:

enter image description here

查看更多
SAY GOODBYE
3楼-- · 2019-06-21 04:40

If you enable "Mark Occurrences" (Alt + Shift + O), then all words that are the same as the one you have marked will be highlighted.

enter image description here

查看更多
登录 后发表回答