Alex Rivera | Logout

Eclipse highlighting the same occurrence of the word

Asked 2011-08-30T03:23:36.693
58

In Notepad++, it has a very nice feature that if I select a word, it will highlight all the same words throughout the text. I can also set the hot-keys to highlight up to five different words with different styles (See the effect below) .

enter image description here

Is there any ways to get this similar effect in eclipse? I know when editing Java, it will highlight all the same variables, but it will not work when I highlight the comments and editing other files type (e.g. xml, html, js, css and etc).

Edit
Report

1 Answer

3

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

answered 2012-09-06T13:42:29.693

Your Answer