Mac版 Android Studio快速鍵大全

來源:互聯網
上載者:User

標籤:sel   var   methods   快速鍵   ant   enter   module   提示   nbsp   

?—> option|alt 
?—>shift 
?—>control 
?—>command 
?—>esc 
↑↓←→

Code alt+F7:Find usage 
alt+command+L:格式化代碼 alt+control+O:最佳化import(去掉無用的import) command+O:Override Methods 
command+I:Implement Methods 
command+B:Declaration查看定義 
alt+command+B:Implementations查看其實現 
command+U:Super Method(Class) 
control+上下方向鍵:Previous/Next Method 
(shift+)F2:快遞定位並高亮錯誤(deprecate,unused) 
command+Z:Undo撤銷 
shift+command+Z:Redo Typing 
alt+enter:引入包,添加註釋… 
control+enter:generate setter,getter… 
shift+command+T:添加Test 
command+W:Extend Selection 
shift+command+W:Shrink Selection 
command+P:參數提示 
command+Y(X):刪除當前行(剪下當前行) 
command+F11:添加/取消bookmark 
shift+F11:顯示bookmark列表 
command++/-:展開收縮代碼 
shift+command+上下方向鍵:Move Line Up/Move Line Down Search

command+F:Find 
command+R:Replace 
control+shift+F:Find in Path 
control+shift?+R:Replace in Path 
alt+command+左右方向鍵:Back/Forward操作 
command+E:Recent File 
shift+command+E:Recently Change Files 
shift+shift:Search Method或者Class (Search Everywhere:command+N,shift+command+N,shift+alt+command+N) 
command+N:Search Class 
shift+command+N:Search File 
shift+alt+command+N:Search Symbol

Run/Debug

shift+F10:Run 
shift+F9:Debug 
command+F9:Make Project 
shift+command+F9:Make Module 
command+F2:關閉當前的執行的task 
command+F8:添加/取消斷點 
shift+command+F8:查看所有斷點 
Debug: 
F7:Step Into 
F8:Step Over 
shift+F8:Step out 
F9:resume 
alt+F9:Run to Cursor

Refactor

shift+F6:重新命名 
command+F6:快速修改函數的參數,傳回值或者類添加泛型等 
F6:Move快速的移動方法或者類 
F5:Copy快速的移動類 
alt+command+C:提取Constant變數 
alt+command+V:提取Variable(Local變數) 
alt+command+F:提取Field變數 
alt+command+M:提取Method

Window

control+左右方向鍵:tab切換 
alt+F4:關閉當前tab 
esc+command:切換當前的視窗 
shift+esc:隱藏側欄

VCS

command+K:Commit Changes 
shift+command+K:Push Commit Changes 
command+T:Update Project

Setting

command+,:Android Studio Preferences 
command+;:Project Structure 

Mac版 Android Studio快速鍵大全

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.