Android Studio 提示

來源:互聯網
上載者:User

 

神馬情況,竟然gradle
自動下載下來了,估計也就用了20來分鐘的樣子,如果你網速還行的話,當你建立一個項目的時候他會給你自動下載該檔案的。好吧既然下下來了,咋就開始幹活,但是幹活之前至少得知道咋使用吧,畢竟也是一個新工具,需要看看產品說明書了,才能發揮它的功效是吧

下面就簡單的介紹下他的幾個快速鍵的使用:


NO.1   Ctrl+N     可以快速的尋找你需要開啟的類,當你輸入類名的時候具有自動補全功能!

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+/ 

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    快速的查看的 類,函數的 文檔問資訊描述

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 中始終沒找到。有哪個大神知道給我留言萬分感謝) 

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)

還有很多資訊,就不一一翻譯了,大家去查看官方文檔吧!



聯繫我們

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