神馬情況,竟然gradle 自動下載下來了,估計也就用了20來分鐘的樣子,如果你網速還行的話,當你建立一個項目的時候他會給你自動下載該檔案的。好吧既然下下來了,咋就開始幹活,但是幹活之前至少得知道咋使用吧,畢竟也是一個新工具,需要看看產品說明書了,才能發揮它的功效是吧
下面就簡單的介紹下他的幾個快速鍵的使用:
NO.1 Ctrl+N 可以快速的尋找你需要開啟的類,當你輸入類名的時候具有自動補全功能!
[html] <STRONG>To open any class in the editor quickly, press Ctrl+N (Navigate | Class) and start typing the name of the class. Choose the class from a drop-down list that appears.
You can open any file in your project in a similar way by using Ctrl+Shift+N (Navigate | File)</STRONG>
To open any class in the editor quickly, press Ctrl+N (Navigate | Class) and start typing the name of the class. Choose the class from a drop-down list that appears.
You can open any file in your project in a similar way by using Ctrl+Shift+N (Navigate | File)
NO.2 Ctrl+Space 自動補全功能 ,相當於eclipse中的Ctrl+/
[html] The Code Completion feature lets you quickly complete different kinds of statements in the code. For example, start typing a class name and press Ctrl+Space to complete it. When multiple choices are available, they are shown in the lookup list.
The Code Completion feature lets you quickly complete different kinds of statements in the code. For example, start typing a class name and press Ctrl+Space to complete it. When multiple choices are available, they are shown in the lookup list.
NO.4 Ctrl+Q 快速的查看的 類,函數的 文檔問資訊描述
[html] To quickly see the documentation for the class or method used at the editor's caret, press Ctrl+Q (View | Quick Documentation).
To quickly see the documentation for the class or method used at the editor's caret, press Ctrl+Q (View | Quick Documentation).
NO.4 Ctrl+B 導航顯示相關關聯資訊。可以按住Ctrl 點擊方法進入到實作類別方法中
To navigate to the declaration of a class, method or variable used somewhere in the code, position the caret at the usage and pressCtrl+B. You may also click the mouse on usages with theCtrl key pressed to jump to declarations.
Ctrl+D 備份選中行的資訊(Xcode 中始終沒找到。有哪個大神知道給我留言萬分感謝)
[html] Ctrl+D in the editor duplicates the selected block or the current line when no block is selected.
Ctrl+D in the editor duplicates the selected block or the current line when no block is selected.
Android Studio 快速鍵使用、
工程快速修複 ALT + ENTER
格式化化代碼 CTRL + ALT + L (Win)
OPTION + CMD + L (Mac)
查看選中API資訊 CTRL + Q (Win)
F1 (Mac)
選中方法查看參數資訊 CTRL + P
普通方法 ALT + Insert (Win)
CMD + N (Mac)
進入原始碼 F4 (Win)
CMD + down-arrow (Mac)
刪除整行代碼 CTRL + Y (Win)
CMD + Backspace (Mac)
尋找資訊 CTRL + ALT + SHIFT + N (Win)
OPTION + CMD + O (Mac)
構建項目 CTRL + F9 (Win)
CMD + F9 (Mac)
構建項目並運行 SHIFT + F10 (Win)
CTRL + R (Mac)
斷點顯示 ALT + 1 (Win)
CMD + 1 (Mac)
顯示隱藏導覽列 ALT + left-arrow; ALT + right-arrow (Win)
CTRL + left-arrow; CTRL + right-arrow (Mac)