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?
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With