Do you find yourself copying and pasting parts of bodies between different methods and then facing broken code?
Unfortunately, parameter names tend to differ — like in this (very simplified) example:
Nothing is easier than fixing this problem with a few keystrokes in IntelliJ IDEA!
First, move caret on any red reference (highlighted with red color), or simply press F2, and then invoke available Quick-Fixes via Alt+Enter:
Now select Rename Reference (again, you can use arrow keys or just start typing Ren.. + Enter) and… IntelliJ IDEA fixes code for you!
See, sometimes it’s just the small features making it possible to achieve maximum productivity.
Subscribe to Blog updates
Thanks, we've got you!