android studio for Mac快速鍵大全

來源:互聯網
上載者:User

標籤:data-   update   content   res   替換   最大化   父類   狀態   實現   

Description Mac
General  
Synchronize Command + Option + Y
最大化/最小化編輯器 Control + Command + F12
添加到收藏夾 Option + Shift + F
檢測(Inspect)當前檔案與設定檔 Option + Shift + I
Quick switch scheme Control + ` (backquote)
開啟設定對話方塊 Command + , (comma)
開啟項目結構配置(project structure) Command + ; (semicolon)
標籤和工具視窗之間互相切換 Control + Tab
導航和搜尋  
搜尋任何檔案(包括代碼和菜單) 按兩次 Shift
尋找 Command + F
尋找下一個 Command + G
尋找上一個 Command + Shift + G
替換 Command + R
搜尋 action 或者 option Command + Shift + A
通過 symbol name 尋找檔案 Command + Option + O
尋找類 Command + O
尋找檔案 Command + Shift + O
全域搜尋(Find in path) Command + Shift + F
開啟當前檔案的結構彈框(方法,屬性等) Command + F12
切換標籤 Control + 左/右箭頭
跳轉到原始碼 F4 / Command + 向下箭頭
在新視窗中開啟當前選定的標籤tab Shift + F4
最近開啟的檔案清單彈框 Command + Shift + E
返回上一個編輯的位置 Command + Shift + Backspace
關閉當前活動標籤tab Command + W
從工具視窗返回到編輯視窗 Esc
隱藏當前或者上一個活動的工具視窗 Shift + Esc
跳轉到這一行 Command + L
開啟類型分級結構(就是繼承實現關係) Control + H
開啟當前選中方法的層級結構 Command + Shift + H
開啟調用層級結構即誰調用了當前選中的對象 Control + Option + H
寫代碼  
代碼自動產生 (getters, setters, constructors, hashCode/equals, toString, new file, new class等) Command + N
重寫方法 Control + O
實現方法 Control + I
Surround with (if…else / try…catch / etc.) Command + Option + T
刪除游標所在位置的這一行 Command + Backspace
摺疊/展開當前代碼塊 Command + 減號/加號
摺疊/展開所有的代碼塊 Command + Shift + 減號/加號
複製當前行或者選中的代碼 Command + D
代碼補全(Basic code completion) Control + Space (與切換IME衝突,建議開啟代碼自動補全)
智能代碼補全 Control + Shift + Space
補全當前語句(比如自動加分號,自動加花括弧) Command + Shift + Enter
快速查看文檔 Control + J
顯示選中方法的參數 Command + P
直接跳轉到聲明 Command + B or Command + Click
跳轉到實現的代碼 Command + Alt + B
跳轉到父類方法/超類 Command + U
快速查看定義而不是跳轉到聲明 Command + Y
切換項目工具視窗的可見度 Command + 1
添加/移除書籤 F3
標記不同的符號來添加移除書籤 Option + F3
行注釋 Command + /
塊注釋 Command + Shift + /
選擇游標所在的代碼塊,連續按則遞增選擇 Option + ↑
返回選擇代碼塊之前的狀態 Option + ↓
移動游標到代碼塊的開始 Option + Command + [
移動游標到代碼塊的結束 Option + Command + ]
從當前游標選擇到代碼快遞的開始(遞增選擇) Option + Command + Shift + [
從當前游標選擇到代碼快遞的結束(遞增選擇) Option + Command + Shift + ]
刪除當前游標到單詞結束的字元 Option + Delete
刪除當前游標到單詞開始的字元 Option + Backspace
Optimize imports Control + Option + O
快速修複 Option + Enter
格式化代碼 Command + Option + L
自動縮排當前行 Control + Option + I
向後/向前縮排 Tab/Shift + Tab
把下一行加在本行代碼後面 Control + Shift + J
把本行游標後面的所有所有內容換行到下一行 Command + Enter
在下一行插入空行 Shift + Enter
跳轉到下一個/上一個高亮錯誤 F2 / Shift + F2
Build and Run  
Build Command + F9
Build and run Control + R
調試  
Debug Control + D
Step over F8
Step into F7
Smart step into Shift + F7
Step out Shift + F8
運行到游標處 Option + F9
顯示運算式的結果 Option + F8
Resume program Command + Option + R
添加/移除斷點 Command + F8
查看斷點 Command + Shift + F8
重構  
複製當前檔案到 F5
移動當前檔案到 F6
Safe delete Command + Delete
重新命名 Shift + F6
Change signature Command + F6
代碼內聯(Inline,比如把全域屬性變為局部屬性) Command + Option + N
把代碼塊提取為方法 Command + Option + M
把選中代碼提取為變數 Command + Option + V
把方法內選中代碼提取為屬性(局部到全域,與 Inline相反) Command + Option + F
提取常量 Command + Option + C
提取為方法的參數 Command + Option + P
版本控制/本地記錄  
Commit project to VCS Command + K
Update project from VCS Command + T
查看最近的更改 Option + Shift + C
Open VCS popup Control + V
 

android studio for Mac快速鍵大全

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.