IntelliJ IDEA Keyboard Shortcuts

Posted on Posted in Cheat Sheets, Topics

Learning your IDE can make your life easier. Nuff said.

Yeah, it is a hassle, in the beginning learning something new always is, but if you take the time you will never go back.

Once you go keyboard, you’ll never go back.

These are some keyboard shortcuts that I use, the list is obviously not complete and I do encourage further reading on the topic.

A simple description together with the shortcut is enough if you try them yourself. So try them yourself and see what happens.

IntelliJ IDEA Keyboard Shortcuts

Revert changes:

 

Open terminal window:

 

Navigate to a class:

 

Navigate to a file:

 

Create a test for a class and other options (prerequisite select the class name in code):

 

Find in path:

 

Run application:

 

Debug application:

 

Rename, depending on context:

 

New or generate, depending on context:

 

Search everywhere:

 

Line comment, toggle or untoggle:

 

Block comment, toggle or untoggle:

 

Find in file:

 

Replace in file:

 

Indent code:

 

Extract method:

 

Expand:

 

Collapse:

 

Expand all:

 

Collapse all:

 

Go to method implementation:

 

Select current line:

 

Copy current line:

 

To be continued…

Spread the knowledge

Leave a Reply

Your email address will not be published. Required fields are marked *