IntelliJ F6-based Refactoring Keyboard Shortcuts on OS X

March 14, 2015 Jared Carroll

Use powerful refactoring commands to safely make small and large-scale changes.

Undo any refactoring with command + Z.

Move

Move classes, methods, files, and directories with F6.

Move top-level class

Move top-level class

Move inner class

Move inner class

Move package

Move package

Rename

Rename classes, methods, variables, parameters, files, and directories with shift + F6.

Rename method

Type Migration

Migrate the type of fields, parameters, variables, and method return types with command + shift + F6. The cursor must be on the type.

Type migration

Change Signature

Change any part of a method signature with command + F6. The cursor must be on the method name.

Change signature

Add a parameter with command + N. Remove a parameter with Backspace or delete.

Re-order parameters with option + Up and option + Down.

About the Author

Biography

More Content by Jared Carroll
Previous
Deploying BOSH Lite in a Subnet-Accessible Manner
Deploying BOSH Lite in a Subnet-Accessible Manner

BOSH is a tool that (among other things) deploys VMs. BOSH Lite is a user-friendly means of installing BOSH...

Next
How to Define Your Persona (Part 2)
How to Define Your Persona (Part 2)

This post is the second in a series of blog posts that outlines a step-by-step process to define your value...

Enter curious. Exit smarter.

Register Now