ionial ([personal profile] ionial) wrote in [personal profile] soid 2024-05-10 09:30 am (UTC)

I already forgot -- does IntelliJ refactoring support function rename with argument reordering?

Anyway as soon as you decide that the argument type changes, it is better to go manually over all the places your function is called to validate that you don't rely on some nasty casting.

For me the most useful refactoring tool that is beyond rename is "extract method" and its weaker sibling "extract variable".

When I programmed in Java in IntelliJ I remember that "extract method" knew to detect similar blocks in the same class and offered it as an option, but I don't remember it doing over several classes.

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting