This post originated from an RSS feed registered with Java Buzz
by Vasanth Dharmaraj.
Original Post: Eclipse Tip: Local rename
Feed Title: Vasanth Dharmaraj's Blogs
Feed URL: /SyndicationService.asmx/GetRssCategory?categoryName=Technology%7CJava
Feed Description: my thoughts on dot net, java, linux, formula one, xbox gamming...(my java category)
Ever come across a situation where where you have a meaningless local variable 'temp'
and you want to rename it to something useful? Did you find find/replace cumbersome?
Well Eclipse is your friend. It provides you a easy way rename such variables.
Just place the cursor at the variable and hit Ctrl+1 or choose Edit
> Quick Fix and choose 'Local Rename'. Now the variable is shown
with a green underline and is highlighted. Now just type in the new variable name
and all the references to the variable change simultaneously! This more of the editor
is called linked edit mode.