IntelliJ IDEA shortcuts for Eclipse users

Feb 27, 2014 in Software Development

Switching from Eclipse to IntelliJ IDEA was a great decision. Eclipse of course gets things done, but not as fast, not as flawless, not as intelligent as IntelliJ.

And yet, the switching process took me some time. Especially learning new shortcuts was a little bit irritating. Performing basic tasks took me minutes, because I had to look up the correct shortcut each time. It's possible to use an Eclipse shortcut mapping, but since I wasn't going to switch back, I've decided to learn the default mapping. JetBrains offers a nice overview (PDF) containing most important shortcuts. In order to find the correct row faster, I have added another column with Eclipse shortcuts.

So let's say I want to see a class outline. I know it's Ctrl + O in Eclipse. Now I just have to look for this shortcut in the first column to find the IntelliJ equivalent. For a shortcut junkie like me this is a lot faster than reading the action descriptions. I hope this helps other software developers, too.

Let me know if any shortcut mapping is wrong or missing.

Update 17.10.2015

A friend of mine wrote a script to make the search more interactive. Check it out!

   

   

Eclipse

IntelliJ IDEA

Action

Editing

  

  

Ctrl + Space

Ctrl + Space

Basic code completion (the name of any class, method or variable)

  

Ctrl + Shift + Space

Smart code completion (filters the list of methods and variables by expected type)

Ctrl + Shift + Space

Ctrl + P

Parameter info (within method call arguments)

F2

Ctrl + Q

Quick documentation lookup

  

Ctrl + mouse over

Brief Info

F2

Ctrl + F1

Show descriptions of error or warning at caret

  

Alt + Insert

Generate code... (Getters, Setters, Constructors, hashCode/equals, toString)

  

Ctrl + O

Override methods

  

Ctrl + I

Implement methods

  

Ctrl + Alt + T

Surround with... (if..else, try..catch, for, synchronized...)

  

Ctrl + Shift + Delete

Unwrap/Remove statement

Ctrl + Shift + C

Ctrl + Shift + Y

Comment/uncomment with line comment

Ctrl + Shift + /

Ctrl + Alt + Shift + Y

Comment/uncomment with block comment

Alt + Shift + Up

Ctrl + W

Select successively increasing code blocks

Alt + Shift + Down

Ctrl + Shift + W

Decrease current selection to previous state

  

Alt + Q

Context info

Ctrl + 1

Alt + Enter

Show intention actions and quick-fixes

  

Ctrl + Shift + Enter

Complete current statement

Ctrl + Shift + F

Ctrl + Alt + L

Reformat code

Ctrl + Shift + O

Ctrl + Alt + O

Optimize imports

  

Ctrl + Shift + V

Paste from recent buffers...

Ctrl + Alt + Up

Ctrl + D

Duplicate current line or selected block

Ctrl + D

Ctrl + Y

Delete line at caret

Shift + Enter

Shift + Enter

Start new line

Ctrl + Shift + X/Y

Ctrl + Shift + U

Toggle case for word at caret or selected block

Ctrl + Delete

Ctrl + Delete

Delete to word end

  

Ctrl + Backspace

Delete to word start

Ctrl + NumPad+/-

Ctrl + NumPad+/-

Expand/collapse code block

Ctrl + NumPad *

Ctrl + Shift + NumPad+

Expand all

Ctrl + Shift + NumPad /

Ctrl + Shift + NumPad-

Collapse all

Ctrl + W

Ctrl + F4

Close active editor tab

Alt + Up/Down

Ctrl + Shift + Up/Down

Move line up/down

Ctrl + Up/Down

  

Scroll Line up/down

Search/Replace

  

  

Ctrl + F

Ctrl + F

Find

Ctrl + K

F3

Find next

Ctrl + Shift + K

Shift + F3

Find previous

Ctrl + F

Ctrl + R

Replace

Strg + H

Ctrl + Shift + F

Find in path

  

Ctrl + Shift + R

Replace in path

Usage Search

  

  

Ctrl + G

Alt + F7

Find usages

Ctrl + Shift + G

Ctrl + F7

Find usages in file

  

Ctrl + Shift + F7

Highlight usages in file

  

Ctrl + Alt + F7

Show usages

Ctrl + Shift + U

  

Show occurrences in file

Compile and Run

  

  

Ctrl + B

Ctrl + F9

Make project (compile modifed and dependent)

  

Ctrl + Shift + F9

Compile selected file, package or module

  

Alt + Shift + F10

Select configuration and run

  

Alt + Shift + F9

Select configuration and debug

Ctrl + F11

Shift + F10

Run

  

Shift + F9

Debug

Debugging

  

  

F6

F8

Step over

F5

F7

Step into

  

Shift + F7

Smart step into

F7

Shift + F8

Step out

Ctrl + R

Alt + F9

Run to cursor

Ctrl + U

Alt + F8

Evaluate expression

F8

F9

Resume program

Ctrl + Shift + B

Ctrl + F8

Toggle breakpoint

Alt + Shift + Q, B

Ctrl + Shift + F8

View breakpoints

Navigation

  

  

Ctrl + Shift + T

Ctrl + N

Go to class

Ctrl + Shift + R

Ctrl + Shift + N

Go to file

  

Ctrl + Alt + Shift + N

Go to symbol

Ctrl (+ Shift) + Tab

Alt + Right/Left

Go to next/previous editor tab

Ctrl + L

Ctrl + G

Go to line

Ctrl + E

Ctrl + E

Recent files popup

  

Ctrl + Shift + E

Recent edited files popup

Alt + Left/Right

Ctrl + Alt + Left/Right

Navigate back/forward

  

Ctrl + Shift + Backspace

Navigate to last edit location

F3 or Ctrl + Click

Ctrl + B or Ctrl + Click

Go to declaration

Ctrl + T

Ctrl + Alt + B

Go to implementation(s)

  

Ctrl + U

Go to super-method/super-class

Ctrl + Shift + Up/Down

Alt + Up/Down

Go to previous/next method

Ctrl + Shift + P

Ctrl + >/<

Move to code block end/start

Ctrl + O

Ctrl + F12

File structure popup

F4

Ctrl + H

Type hierarchy

  

Ctrl + Shift + H

Method hierarchy

Ctrl + Alt + H

Ctrl + Alt + H

Call hierarchy

Ctrl + . / Ctrl + ,

F2 / Shift + F2

Next/previous highlighted error

Alt + Shift + B

Alt + Home

Show navigation bar

  

Ctrl + Shift + T

Navigate from/to the corresponding test class, or create one

Bookmarks

  

  

  

F11

Toggle bookmark

  

Ctrl + F11

Toggle bookmark with mnemonic

  

Ctrl + #[0-9]

Go to numbered bookmark

  

Shift + F11

Show bookmarks

Refactoring

  

  

  

F5

Copy

  

F6

Move

Alt + Shift + R

Shift + F6

Rename

Alt + Shift + C

Ctrl + F6

Change Signature

Alt + Shift + I

Ctrl + Alt + N

Inline

Alt + Shift + M

Ctrl + Alt + M

Extract Method

Ctrl + 2, L

Ctrl + Alt + V

Extract Variable

Ctrl + 2, F

Ctrl + Alt + F

Extract Field

  

Ctrl + Alt + C

Extract Constant

  

Ctrl + Alt + P

Extract Parameter

Version Control

  

  

Ctrl + #

Ctrl + K

Commit

  

Ctrl + Shift + K

Push

  

Ctrl + T

Update project

  

Ctrl + Alt + Z

Revert changes

  

Ctrl + Alt + Shift + Down

Next Change

  

Ctrl + Alt + Shift + Up

Previous Change

Live Templates

  

  

  

Ctrl + Alt + J

Surround with Live Template

  

Ctrl + J

Insert Live Template

General

  

  

Ctrl + M

Ctrl + Shift + F12

Toggle maximizing editor

  

Alt + Shift + F

Add to Favorites

  

Alt + Shift + I

Inspect current file with current profile

  

Ctrl + Alt + S

Open Settings dialog

  

Ctrl + Alt + Shift + S

Open Project Structure dialog

Ctrl + 3

Ctrl + Shift + A

Find Action

  

Ctrl + Tab

Switch between tabs and tool window

  

Ctrl + Shift + C

Copy Path

Related posts

posted @ 2018-01-16 15:01  zhaozhenqiang  阅读(199)  评论(0编辑  收藏  举报