Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut for 'refactor' for IntelliJ IDEA

In Visual Studio (using IDEA key mapping), Ctrl + Shift + R brings up the 'Refactor' menu.

How do I do the same in IntelliJ?

On Windows.

like image 793
ripper234 Avatar asked Jun 23 '09 08:06

ripper234


People also ask

How do I Refactor in IntelliJ?

Invoke refactoringSelect an item to refactor. You can select a file/folder in the Project tool window or expression/symbol in the editor. Press Ctrl+Alt+Shift+T to open a list of refactorings that can be selected. Alternatively, you can use a keyboard shortcut for a specific refactoring.

What is Ctrl Alt L in IntelliJ?

Sometimes code formatting can get out of sync, but there's an easy fix in IntelliJ IDEA. You can use ⌘⌥L (macOS), or Ctrl+Alt+L (Windows/Linux) to reformat a selection of code according to your reformat settings.

What is Ctrl h in IntelliJ?

Ctrl + H = "Type Hierarchy" view = shows a tree of parent and child classes of this class. Ctrl + Shift + A = "It does a search as you type through all the commands in intellij. Not only that but when you find the command you want it also displays the corresponding shortcut key next to it!"

What is Ctrl Shift O in IntelliJ?

In Eclipse, you press CTRL + SHIFT + O “Organize Imports” to import packages automatically. For IntelliJ IDEA, if you press CTRL + ALT + O “Optimize Imports”, it just removes some unused imports, never imports any package.


2 Answers

ctrl + alt + shift + t = refactor this

in intelliJ IDEA version 11.0.2

like image 181
Kornél Regius Avatar answered Sep 21 '22 22:09

Kornél Regius


If you press on CTRL + Shift + A and type in the action you want to perform, it also shows the shortcuts keys. This way you can learn shortcuts much easier.

enter image description here

like image 24
Tarik Avatar answered Sep 21 '22 22:09

Tarik