Hacker News new | ask | show | jobs
by rendaw 20 days ago
https://www.jetbrains.com/help/idea/refactoring-source-code....

This has a list, but some of them that I've used extensively:

- Rename anything, can also do smart renames that apply patterns, deal with capitalization differences, pluralization, etc

- Move function, constant to a different file

- Change function signature, including adding, removing, reordering, and renaming arguments

- Turn a chunk of code into a constant, variable, or function, including replacing other similar patterns or calculations with the new constant/variable/function

- Inline any of the above.

- Replace a class with an interface, have the class implement the interface... same with field accesses

- Move functions up/down the type hierarchy

I'm sure there's others. This has all been there for at least a decade.