Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Double Clicking Highlighting

Tags:

In Notepad++ if you double click a word to highlight it, all the occurrences of the word in the file are also highlighted, a feature that is quite handy for finding where variables are declared/used.

Does the eclipse editor have this functionality? :) If so, how can I turn it on?

like image 759
bobber205 Avatar asked Aug 12 '10 16:08

bobber205


People also ask

How do I turn off double-click highlighting?

To disable the text selection when the user double clicks on the HTML element, you can use the user-select property and set its value to none in CSS.

What is the purpose of double-clicking?

In most cases, a double-click is with the left mouse button and is used to open or execute a file, folder, or software program. For example, programs and files in Microsoft Windows are opened by double-clicking the icon. To open your Internet browser, you would double-click the browser icon shortcut.

What is clicking and double-clicking?

Typically, a single click initiates a user interface action and a double-click extends the action. For example, one click usually selects an item, and a double-click edits the selected item.

Why is my double-click not working?

The most common culprit of the double-clicking issue is the double-click speed setting for your mouse is set too low. When set very low, clicking at two different times may be interpreted as a double-click instead.


1 Answers

For the Eclipse Java editor, you can go to Window->Preferences in the menu, then Java->Editor->Mark Occurrences in the options tree and check off anything you want highlighted in this way.

Note that the editor understands Java scoping rules, so if you have 2 local variables with the same name in two different functions, it will only highlight within the current function.

like image 65
Tom Tresansky Avatar answered Oct 11 '22 23:10

Tom Tresansky