常用的 android studio 快捷鍵(Mac):
Command c: 復制
Command v: 粘貼
Command x: 剪切
Command z: 撤銷
Command d: 復制當前行
Command delete: 刪除當前行
Command o: 查找工程內(nèi)的 class
Command p: 提示方法的參數(shù)
Command alt o: 查找工程內(nèi)的文件或方法貨字段
Command alt l: 格式化代碼
Command n: generate method
Command f: 搜索
Command r: 替換搜索
Command ,: 打開設(shè)置
Command ;: 打開 project structure
Command [: 返回上一次編輯的位置
Command shift [:返回上一次查看的文件
Command shift ]:進入下一個文件
Command alt f: 快速抽取成員變量
Command /: 注釋效果\\……
Command alt /: 注釋效果/*……*/
Command j: 快速生成代碼模塊欧宜,適用于 if,for,try……catch
control j: 顯示該方法或類的API(簡介)
control r: 運行項目
control p: 鼠標移動到上一行
control n: 鼠標移動到下一行
control alt h: 查看調(diào)用的位置
control h: 查看當前 class 的 hierarchy 結(jié)構(gòu)
control o: 快速復寫方法
control I: 快速實現(xiàn)接口方法
control t: 調(diào)出 refactor 選項框
alt enter: 導入包纳猫,自動修正
alt 方向鍵: 選中單詞或行
alt shift up/down:上下移動代碼
alt control o: 清除無效引用
Editor —>Code Completion —>Case sensitive completion 調(diào)成 none 江醇,使大小寫不敏感
Editor —>Show quick doc on mouse move 打勾腻窒,鼠標移動到方法上顯示api
Editor —>Auto Import —>Optimize imports on fly 打勾,把不用的聲明移除掉呆细,相當于Ctrl + Alt + O
詳情請看:http://www.cnblogs.com/spring87/p/4720844.html
感謝這位作者提供的內(nèi)容