How can I highlight multiple variables in Eclipse?
In Eclipse, if you rest your cursor on a variabl开发者_如何学Pythone it will highlight that variable everywhere in the code. I was wondering how you could highlight more than one variable at a time?
Not exactly what you want, but using the find dialog you can look for two variables in the same search.
- Mark the Regular Expressions Checkbox in the Options.
- Use a regular expression in the Find textbox. For example if you are looking both for the
index
andcount
variables use(index)|(count)
. - The Find button will cycle through all instances of both
index
andcount
.
This can be expanded to even more tricky searches.
精彩评论