When i rename a variable in eclipse using Ctrl+1 it doesnt rename the getter/setter methods. Is there any way to rename the methods as well.
Use Alt+Shift+R
on the required field. In the dialog that appears select 'Open Rename Dialog' and check the corresponding checkboxes
Rename the field using Refactor > Rename and choose "open rename dialog" in the tooltip. Or, simpler, press Ctrl+R twice.
In the rename dialog you can then choose to rename the getter and the setter of the field as well.
The setting you apply there is persistent, so after checking Rename getter and Rename setter, the next inline-rename will honor the setting as well and rename the getters and setters.
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