1首繁、文本編輯
刪除 ctr + y
復(fù)制 ctr + D
2垛玻、智能提示
提示 ctr + space
智能提示 ctr + shift + space
完成當(dāng)前語句 ctr + shift + enter
建議提示為參數(shù) ctr + alt + P
對代碼重新排列格式 Ctrl + Alt + L
對imports進(jìn)行優(yōu)化 Ctrl + Alt + O
3、位置定位
定位到下一個或上一個錯誤 F2 / Shift + F2
定位文件頭 ctr+G (定位到文件行數(shù))
定位文件尾 ctr+G
定位到代碼塊開始 ctr + [
定位到代碼塊結(jié)束 ctr + ]
回到最近的窗口 F12
回到之前的文件 alt + left
回到之后的文件 alt + right
定位到最后編輯位置 Ctrl?+?Shift?+?Backspace
從tool window或其他window切換到文件編輯 esc
關(guān)閉最近打開的窗口 shift + esc
4钧唐、類溪烤、方法县昂、文件定位
查找類 ctr + N
查找文件 Ctrl + Shift + N
符號定位 Ctrl + Alt + Shift + N
查看文件結(jié)構(gòu) ctrl + F12
最近打開的文件 ctr + E
定位下一個方法 alt + down
定位上一個方法 alt + up
查看方法參數(shù)信息 ctr + p
查看方法邢疙、類的doc ctr + Q
5棍弄、類、方法的結(jié)構(gòu)查看秘症、定位
跳到類或方法的聲明 ctr + B
定位到類的父類照卦、接口 ctr + U
查看類的繼承結(jié)構(gòu) ctr + H
查看方法的繼承結(jié)構(gòu) ctr + shift + H
查看類或方法被調(diào)用情況 ctr + alt +H
原地參看類式矫、方法的聲明 Ctrl + Shift + I
6乡摹、運(yùn)行與調(diào)試
Compile and Run
Ctrl + F9 Make project (compile modifed and dependent)
Ctrl + Shift + F9 Compile selected file, package or module
Alt + Shift + F10 Select configuration and run
Alt + Shift + F9 Select configuration and debug
Shift + F10 Run
Shift + F9 Debug
Ctrl + Shift + F10 Run context configuration from editor
Debugging
F8 Step over
F7 Step into
Shift + F7 Smart step into
Shift + F8 Step out
Alt + F9 Run to cursor
Alt + F8 Evaluate expression
F9 Resume program
Ctrl + F8 Toggle breakpoint
Ctrl + Shift + F8 View breakpoints
Ctrl+Z 撤銷
Ctrl+Shift+Z 返回撤銷