IntelliJ IDEA 默认快捷键大全

Remember these Shortcuts

常用功能快捷键备注
Smart code completionCtrl + Shift + Space-
Search everywhereDouble Shift-
Show intention actions and quick-fixesAlt + Enter-
Generate codeAlt + Ins-
Parameter infoCtrl + P-
Extend selectionCtrl + W-
Shrink selectionCtrl + Shift + W-
Recent files popupCtrl + E-
RenameShift + F6-
__________________________________________________________________________________

General

常用功能快捷键备注
Open corresponding tool windowAlt + #[0-9]-
-Save allCtrl + S-
-SynchronizeCtrl + Alt + Y-
Toggle maximizing editorCtrl + Shift + F12-
-Inspect current file with current profileAlt + Shift + I-
-Quick switch current schemeCtrl + BackQuote (`)-
Open Settings dialogCtrl + Alt + S-
Open Project Structure dialogCtrl + Alt + Shift + S-
Find ActionCtrl + Shift + A-
__________________________________________________________________________________

Debugging

常用功能快捷键备注
Step over/intoF8 / F7-
-Smart step into/Step outShift + F7 / Shift + F8-
-Run to cursorAlt + F9-
Evaluate expressionAlt + F8-
-Resume programF9-
Toggle breakpointCtrl + F8-
-View breakpointsCtrl + Shift + F8-
__________________________________________________________________________________

Search / Replace

常用功能快捷键备注
Search everywhereDouble Shift-
FindCtrl + F-
-Find next/previousF3 / Shift + F3-
-ReplaceCtrl + R-
-Find in pathCtrl + Shift + F-
-Replace in pathCtrl + Shift + R-
Select next occurrenceAlt + J-
-Select all occurrencesCtrl + Alt + Shift + J-
-Unselect occurrenceAlt + Shift + J-
__________________________________________________________________________________

Editing

常用功能快捷键备注
Basic code completionCtrl + Space-
Smart code completionCtrl + Shift + Space-
Complete statementCtrl + Shift + Enter-
Parameter info (within method call arguments)Ctrl + P-
-Quick documentation lookupCtrl + Q-
-External DocShift + F1-
-Brief InfoCtrl + mouse-
-Show descriptions of error at caretCtrl + F1-
Generate code…Alt + Insert-
Override methodsCtrl + O-
Implement methodsCtrl + I-
Surround with…Ctrl + Alt + T-
Comment/uncomment with line commentCtrl + /-
Comment/uncomment with block commentCtrl + Shift + /-
Extend selectionCtrl + W-
Shrink selectionCtrl + Shift + W-
Context infoAlt + Q-
Show intention actions and quick-fixesAlt + Enter-
Reformat codeCtrl + Alt + L-
Optimize importsCtrl + Alt + O-
Auto-indent line(s)Ctrl + Alt + I-
-Indent/unindent selected linesTab / Shift + Tab-
-Cut current line to clipboardCtrl + X , Shift + Delete-
-Copy current line to clipboardCtrl + C , Ctrl + Insert-
-Paste from clipboardCtrl + V , Shift + Insert-
-Paste from recent buffers…Ctrl + Shift + V-
Duplicate current lineCtrl + D-
-Delete line at caretCtrl + Y-
-Smart line joinCtrl + Shift + J-
Smart line splitCtrl + Enter-
Start new lineShift + Enter-
-Toggle case for word at caret or selected blockCtrl + Shift + U-
-Select till code block end /startCtrl + Shift + ] /[-
-Delete to word endCtrl + Delete-
-Delete to word startCtrl + Backspace-
-Expand/collapse code blockCtrl + NumPad+ / --
-Expand allCtrl +  Shift + NumPad+-
-Collapse allCtrl + Shift + NumPad--
Close active editor tabCtrl + F4-
__________________________________________________________________________________

Refactoring

常用功能快捷键备注
CopyF5-
MoveF6-
-Safe DeleteAlt + Delete-
RenameShift + F6-
-Refactor thisCtrl + Alt + Shift + T-
Change SignatureCtrl + F6-
-InlineCtrl + Alt + N-
Extract MethodCtrl + Alt + M-
Extract VariableCtrl + Alt + V-
-Extract FieldCtrl + Alt + F-
-Extract ConstantCtrl + Alt + C-
-Extract ParameterCtrl + Alt + P-
__________________________________________________________________________________

Navigation

常用功能快捷键备注
Go to classCtrl + N-
Go to fileCtrl + Shift + N-
Go to symbolCtrl + Alt + Shift + N-
-Go to next/previous editor tabAlt + Right/Left-
-Go back to previous tool windowF12-
Go to editor (from tool window)Esc-
-Hide active or last active windowShift + Esc-
Go to lineCtrl + G-
Recent files popupCtrl + E-
-Navigate back/forwardCtrl + Alt + Left/Right-
Navigate to last edit locationCtrl + Shift + Backspace-
Select current file or symbol in any viewAlt + F1-
Go to declarationCtrl + B ,Ctrl + Click-
Go to implementation(s)Ctrl + Alt + B-
Open quick definition lookupCtrl + Shift + I-
-Go to type declarationCtrl + Shift + B-
-Go to super-method/super-classCtrl + U-
-Go to previous/next methodAlt + Up/Down-
-Move to code block end/startCtrl + ]/[-
File structure popupCtrl + F12-
-Type hierarchyCtrl + H-
-Method hierarchyCtrl + Shift + H-
-Call hierarchyCtrl + Alt + H-
-Next/previous highlighted errorF2 / Shift + F2-
-Edit source/View sourceF4 /Ctrl + Enter-
Show navigation barAlt + Home-
-Toggle bookmarkF11-
-Toggle bookmark with mnemonicCtrl + F11-
-Go to numbered bookmarkCtrl + #[0-9]-
-Show bookmarksShift + F11-
__________________________________________________________________________________

Compile and Run

常用功能快捷键备注
Make projectCtrl + F9-
-Compile selected file, package or moduleCtrl + Shift + F9-
-Select configuration and run/debugAlt + Shift + F10/F9-
Run/DebugShift + F10 / F9-
-Run context configuration from editorCtrl + Shift + F10-
__________________________________________________________________________________

Usage Search

常用功能快捷键备注
Find usages/Find usages in file Alt + F7 /Ctrl + F7-
Highlight usages in fileCtrl + Shift + F7-
Show usagesCtrl + Alt + F7-
__________________________________________________________________________________

VCS / Local History

常用功能快捷键备注
Commit project to VCSCtrl + K-
Update project from VCSCtrl + T-
Push commitsCtrl + Shift + K-
‘VCS’ quick popupAlt + BackQuote (`)-
__________________________________________________________________________________

Live Templates

常用功能快捷键备注
-Surround with Live TemplateCtrl + Alt + J-
-Insert Live TemplateCtrl + J-
__________________________________________________________________________________

参考资料

IntelliJ IDEA DEFAULT KEYMAP

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值