Highlight same words in text files in Eclipse

自作多情 提交于 2020-01-03 10:08:07

问题


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.


回答1:


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




回答2:


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:



来源:https://stackoverflow.com/questions/12301080/highlight-same-words-in-text-files-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!