Windows / Mac下的Android Studio常用快捷鍵

Mac常用鍵盤圖標(biāo)

mac_keybord.png

Android Studio 常用快捷鍵,僅供參考!

說明 Mac Windows/Linux
Quick documentation lookup (打開方法類等的文檔) F1/Control+J Ctrl + Q
Next/previous highlighted error (順序/逆序快速定位高亮錯(cuò)誤) F2 / Shift + F2 F2 / Shift + F2
Toggle Bookmark(添加/移除書簽) F3 F11
Show Bookmarks(打開書簽對(duì)話框) Command + F3 Shift + F11
Jump to Source(跳轉(zhuǎn)到源碼) F4 / Command + Down Arrow F4 / Control + Enter
Copy.. (復(fù)制當(dāng)前文件) F5 F5
Move.. (移動(dòng)當(dāng)前文件) F6 F6
Step Into(debug時(shí)跳進(jìn)方法內(nèi)部) F7 F7
Step Over(debug時(shí)跳到下一行) F8 F8
Open settings dialogue(打開開發(fā)工具設(shè)置界面) Command + , Control + Alt + S
Safe delete(安全刪除) Command + Delete Alt + Delete
Duplicate Line or Block(復(fù)制行或者代碼塊) Command + D Control + D
Close active editor tab (關(guān)閉激活的頁簽) Command + W Control + F4
Show parameters for selected method(方法參數(shù)提示) Command + P Control + P
Exit(退出開發(fā)工具) Command + Q
Go to declaration (directly)跳轉(zhuǎn)到方法、類、字段等的聲明 Command + B or Command + Click Control + B or Control + Click
Find...(查找文本) Command + F Control + F
Replace...(替換文本) Command + R Control + R
Collapse/expand current code block(展開當(dāng)前代碼) Command + minus/plus Control + minus/plus
Collapse/expand all code blocks(展開全部代碼) Command + Shift + minus/plus Control + Shift + minus/plus
Recently opened files pop-up(最近打開的文件) Command + E Control + E
Find class(查找類) Command + O Control + N
Generate... (生成代碼) Command + N Alt + Insert
Go to line (跳轉(zhuǎn)到指定行) Command + L Control + G
Comment/uncomment with line comment (行注釋) Command + / Control + /
Build (構(gòu)建項(xiàng)目) Command + F9 Control + F9
Comment/uncomment with block comment (塊注釋) Command + Alt + / Control + Shift + /
Extract Method (導(dǎo)出方法) Command + Option + M Command + Alt + M
Extract Variable (導(dǎo)出變量) Command + Option + V Command + Alt + V
Extract Field (導(dǎo)出字段) Command + Option + F Command + Alt + F
Extract Constant (導(dǎo)出常量) Command + Option + C Command + Alt + C
Extract parameter (導(dǎo)出參數(shù)) Command + Option + P Command + Alt + P
Reformat code(格式化代碼) Command + Option + L Command + Alt + L
Surround with (if...else / try...catch / etc.)(包括代碼塊生成) Command + Option + T Command + Alt + T
Find file (instead of class)(查找文件) Command + Shift + O Control + Shift + N
Search everything (including code and menus) (搜索工程中的任何位置的文件) Press Shift twice Press Shift twice
Rename...(重命名) Shift + F6) Shift + F6
Override methods (覆蓋父類的方法) Control + O Control + O
Implement methods (實(shí)現(xiàn)接口的方法) Control + I Control + I
Build Command + F9 Control + F9
Build and run Control + R Shift + F10
Dubug (debug程序到設(shè)備) Control + D Shift + F9
Open type hierarchy (查看類的層級(jí)結(jié)構(gòu)) Control + H Control + H
Open method hierarchy (查看方法的層級(jí)結(jié)構(gòu)) Command + Shift + H Control + Shift + H
Open call hierarchy (查看調(diào)用的層級(jí)結(jié)構(gòu)) Control + Option+ H Control + Alt + H
Optimize imports (優(yōu)化導(dǎo)包) Control + Option + O Control + Alt + O
Find usages /Find usages in file Option + F7 / Command + F7 Alt + F7 / Ctrl + F7
Toggle case for word at caret or selected block (切換選中的單詞或者代碼塊的大小寫) Command + Shift + U Ctrl + Shift + U

Android Studio 快捷鍵官方文檔

Windows/Mac 快捷鍵官方文檔

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容