Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> Android Studio 使用技巧

Android Studio 使用技巧

編輯:關於Android編程

神馬情況,竟然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)

 

 

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved