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.
Back to Dev ToolsEditing & Refactoring 13
Cmd+DCopycurrent line
Cmd+YDeletecurrent line
Cmd+/行注释
Cmd+Alt+/块注释
Cmd+Alt+L格式化代码
Cmd+Alt+Ooptimize import
Shift+F6Rename
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+POptions信息
Cmd+Q快速文档
F4Show源码
Alt+J选择下一个相同内容
Cmd+Alt+T用templatepackage裹
Run & Debug 10
Ctrl+RRun当前Configure
Ctrl+DDebug当前Configure
Ctrl+Shift+RRun当前File
Ctrl+Shift+DDebug当前File
F8单步Jump过
F7单步Enter
Shift+F8单步Deactivate
Alt+F9Run到cursor
Cmd+F8切换断点
Cmd+Shift+F8Show所有断点
Version Control 6
Cmd+K提交
Cmd+T拉取
Cmd+Shift+K推送
Alt+`VCS 操作弹窗
Cmd+9Open Git 工具窗口
Alt+3Open Find 工具窗口
Window Management 8
Cmd+1Open Project 工具窗口
Cmd+4Open Run 工具窗口
Cmd+5Open Debug 工具窗口
Cmd+7Open 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