Fundamentals 7 min read

IntelliJ IDEA Shortcut Keys Cheat Sheet

This article provides a comprehensive list of IntelliJ IDEA keyboard shortcuts, covering quick generation of main methods, printing statements, file saving, line deletion, navigation, searching, editing, and other productivity features to help Java developers work more efficiently.

Java Captain
Java Captain
Java Captain
IntelliJ IDEA Shortcut Keys Cheat Sheet

Copyright notice: This article is original content by the author, licensed under CC 4.0 BY‑SA. Original link: https://blog.csdn.net/weixin_45965358/article/details/116173466

1. Quick generation of main

Type psvm

2. Quick generation of System.out.print

Use sout

3. File saving

IDEA auto‑saves; no need to press Ctrl+S.

4. Delete a line

Press Ctrl+Y

5. New, create, add shortcuts

Press Alt+Insert

6. Switch Java programs

Press Alt+Right Arrow or Alt+Left Arrow

7. Show/hide project view

Press Ctrl+Fn+F12

8. Run

Press Ctrl+Shift+F10

9. Show method parameter hints

Press Ctrl+P

10. Switch windows

Press Alt+(number)

11. Find

Shortcut

Description

Ctrl+F

Find in current file

Shift+Ctrl+F

Find in current project

Shift+Shift

Search everywhere

Ctrl+N

Find class

Ctrl+Shift+N

Find file

Ctrl+Shift+Alt+N

Find symbol (method name)

12. Navigation shortcuts

Shortcut

Description

Ctrl+E

Recent files

Ctrl+Tab

Switch file

Ctrl+Alt+Arrow

Jump to previous cursor location

Ctrl+G

Go to line number

You can also customize or modify shortcuts via File → Settings → Keymap.

13. Editing shortcuts

Shortcut

Description

Ctrl+W

Expand selection

Alt+Up/Down Arrow

Navigate methods quickly

Ctrl+Alt+Enter

Insert line before current line

Shift+Enter

Insert line after current line

14. Reading source code

Shortcut

Description

Ctrl+P

Show method parameter info

Ctrl+Shift+←/→

Resize split window divider

Ctrl+H

Show class hierarchy

Supplementary shortcuts

Shortcut

Description

F2

Jump to next error/warning

Ctrl+E

Recent files

Ctrl+Alt+Enter

Insert line before current line

Shift+Enter

Insert line after current line

Ctrl+Alt+O

Optimize imports

Ctrl+Alt+T

Surround with live template (try/catch, etc.)

Alt+Mouse drag

Column selection mode

Alt+7

Show all methods in current class

Ctrl+Alt+V

Extract variable

Ctrl+Alt+P

Extract method parameter

Ctrl+Alt+C

Extract constant

Ctrl+Alt+M

Extract method

Ctrl+W

Select word, line, block, etc.

Ctrl+Alt+Left

Navigate back to previous edit location

PS: If you find this sharing useful, feel free to like or watch the post.

IntelliJ IDEAJava developmentcode navigationshortcut keysIDE productivity
Java Captain
Written by

Java Captain

Focused on Java technologies: SSM, the Spring ecosystem, microservices, MySQL, MyCat, clustering, distributed systems, middleware, Linux, networking, multithreading; occasionally covers DevOps tools like Jenkins, Nexus, Docker, ELK; shares practical tech insights and is dedicated to full‑stack Java development.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.