Mac 下android studio 快捷鍵

快速跳轉到實現

查看某個接口在哪裏被實現
操作步驟:

菜單欄: Navigate —> Implementation
快捷鍵:

Mac: Option + Command + B
Windows\/Linux: Ctrl + Alt + B

表格說明

快捷鍵 描述
F1 Quick Documentation 打開方法類等的文檔
F2 Next Highlighted Error 順序快速定位高亮錯誤
Shift + F2 Previous Highlighted Eorror 逆序快速定位高亮錯誤
F3 Toggle Bookmark(添加/移除書籤)
Command + F3 Show Bookmarks(打開書籤對話框)
Shift + F2 Previous Highlighted Eorror 逆序快速定位高亮錯誤
F4 Jump to Source(跳轉到源碼)
F5 Copy.. (複製當前文件)
F6 Move.. (移動當前文件)
F7 Step Into(debug時跳進方法內部)
F8 Step Over(debug時跳到下一行)
Command + , Preferences… (打開開發工具設置界面)
Command + Delete Delete Line(刪除行)
Command + D Duplicate Line or Block(複製行或者代碼塊)
Command + W Close active editor tab (關閉激活的頁籤)
Command + P Parameter Info(方法參數提示)
Command + Q Exit(退出開發工具)
Command + K Check In Project(展示本地改動及提交代碼)
Command + T Update Project (更新代碼)
Command + B Declaration(跳轉到方法、類、字段等的聲明)
Command + F Find…(查找文本)
Command + R Replace…(替換文本)
Command + = Expand(展開代碼)
Command + - Collapse(摺疊代碼)
Command + E Recent Files(最近打開的文件)
Command + O Class…(查找類)
Command + N Generate… (生成代碼)
Command + J Insert Live Template…(自動生成模版代碼)
Command + L Line… (跳轉到指定行)
Command + / Comment/uncomment with line comment (行註釋)
Command + F9 Make project (構建項目)
Command + Alt + / Comment/uncomment with block comment (塊註釋)
Command + Alt + M Extract Method (導出方法)
Command + Alt + V Extract Variable (導出變量)
Command + Alt + F Extract Field (導出字段)
Command + Alt + C Extract Constant (導出常量)
Command + Alt + L Reformat Code…(格式化代碼)
Command + Alt + T Surround with… (if..else, try..catch, for, synchronized, etc.) (包括代碼塊生成)
Alt + F7 Find usages (查找引用)
Command + Alt + F7 Show usages (展示引用下拉框)
Command + Shift + O Go to File(跳轉到文件)
Command + Shift + U Toggle case for word at caret or selected block (切換選中的單詞或者代碼塊的大小寫)
Double Shift Search everywhere (搜索工程中的任何位置的文件)
Shift + F6 Rename…(重命名)
Command + F6 Change Signature (更改方法簽名)
Command + N Generate (方法快捷處理)
Control + O Override methods (覆蓋父類的方法)
Control + I Implement methods (實現接口的方法)
Control + R Run (運行程序到設備)
Control + D Dubug (debug程序到設備)
Control + H Type hierarchy (查看類的層級結構)
Control + Alt + O Optimize imports (優化導包)
option + enter(回車) Extract Resource (提取字符串到string.xml文件)等操作
Command + Shift + A 萬能的輸入框
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章