java - How can I highlight multiple variables in Eclipse? -
In eclipse, if you place your cursor on a variable, then it will highlight that variable everywhere in the code. I was wondering how you can highlight more than one variable at a time?
But using the search dialog, you can see two variables in the same search.
- Mark the regular expression checkbox in the options.
- Use a regular expression in the search textbox. For example if you are looking for both
index and
count variables
(index) | (Count) .
- The search button will cycle through all the instances of both
index and
count .
This can be expanded for even more difficult searches.
- The search button will cycle through all the instances of both
Comments
Post a Comment