One of the things I always do is to rename my variables in the current Java class. I always use Find & Replace but it can be rather destructive at times. I just realized you could hit Ctrl + R to do just that!

That saved me lots of click. It’s a simple feature but it always makes me happy when I use it.

Changing all variable names in NetBeans easily

Press Ctrl + R when your cursor is on the variable name you want to change. It changes all the variables for you. In the above screenshot, I changed the variable from ‘testing’ to ‘changeToSomethingNew’ and it recognizes that it should only change property ‘testing’ in the class scope. Pretty smart I say.

comments powered by Disqus