Software Engineering for Self-Directed Learners »

Can use automated refactoring features of the IDE

Implementation → Refactoring → What


Tools → IntelliJ IDEA →

Refactoring

This video explains how to automate the 'Extract variable' refactoring using IntelliJ IDEA. Most other refactorings available work similarly. i.e. select the code to refactorfind the refactoring in the context menu or use the keyboard shortcut.

Here's another video explaining how to do some more useful refactorings in Intellij IDEA.