IntelliJ IDEA Cheatsheet - Java IDE Shortcut Reference

All essential IntelliJ IDEA commands organized by use case, with 55+ entries you can copy and run directly. Find the right command fast when you need it.

Dev Tools·55 commands·Last updated 2026-07-21
Back to Dev Tools

Editing & Refactoring 13

Cmd+D
Copycurrent line
Cmd+Y
Deletecurrent line
Cmd+/
行注释
Cmd+Alt+/
块注释
Cmd+Alt+L
格式化代码
Cmd+Alt+O
optimize import
Shift+F6
Rename
Cmd+Alt+V
提取variable
Cmd+Alt+M
提取method
Cmd+Alt+C
提取constant
Cmd+Alt+F
提取field
Cmd+Alt+N
内联
Alt+Enter
快速修复/建议

Code Completion 7

Ctrl+Space
基础补全
Ctrl+Shift+Space
智能补全
Cmd+P
Options信息
Cmd+Q
快速文档
F4
Show源码
Alt+J
选择下一个相同内容
Cmd+Alt+T
用templatepackage裹

Run & Debug 10

Ctrl+R
Run当前Configure
Ctrl+D
Debug当前Configure
Ctrl+Shift+R
Run当前File
Ctrl+Shift+D
Debug当前File
F8
单步Jump过
F7
单步Enter
Shift+F8
单步Deactivate
Alt+F9
Run到cursor
Cmd+F8
切换断点
Cmd+Shift+F8
Show所有断点

Version Control 6

Cmd+K
提交
Cmd+T
拉取
Cmd+Shift+K
推送
Alt+`
VCS 操作弹窗
Cmd+9
Open Git 工具窗口
Alt+3
Open Find 工具窗口

Window Management 8

Cmd+1
Open Project 工具窗口
Cmd+4
Open Run 工具窗口
Cmd+5
Open Debug 工具窗口
Cmd+7
Open Structure 工具窗口
Cmd+Shift+F12
最大化Edit器
Cmd+,
OpenSet
Cmd+;
Open项目结构
Shift+Shift
全局Search(Search Everywhere)

💡 Tips

  • Alt+Enter 是万能快捷键,遇到警告/错误时按它会给出修复建议。
  • Shift+Shift 可以快速搜索任何内容(类、文件、符号、操作)。
  • Cmd+Alt+L 格式化代码前,建议先设置好代码风格(Code Style)。

Official References

Commands are compiled from the official docs below. Click to verify the latest usage.

Maintained by LaoHand

Publicly updated on Jul 21, 2026, continuously proofread against official docs.

Found an error? Report it

Wrong command or description? Open an issue to help us fix it.

Found an error? Report it