Android Studio中常用設定與快速鍵(私人珍藏,Eclipse轉AS必看)

來源:互聯網
上載者:User

Android Studio中常用設定與快速鍵(私人珍藏,Eclipse轉AS必看)
常用設定:1.Tab不用4個空格
Code Style->Java->Tabs and Indents->Use tab character
Code Style->General->Use tab character (例如:版本控制Diff介面按下Tab)


2.可視化Tab和空格
Settings->IDE Settings->Editor->Appearance->Show whitespaces


3.顯示程式碼數
Settings->IDE Settings->Editor->Appearance->Show line numbers


4.修改代碼字型大小
Settings->IDE Settings->Editor->Colors & Fonts ->Font->Save As->改個名字後才能改字型大小


5.滑鼠懸浮顯示doc
Settings->IDE Settings->Editor->Show quick doc on mouse move


6.空行的Tab和空格被自動幹掉
Settings->IDE Settings->Editor->Other->Strip trailing spaces on Save->None





常用快速鍵:

首先改為Eclipse快速鍵(然後大部分快速鍵都會跟Eclipse一致了)

Settings->IDE Settings->Keymap->Keymaps選擇Eclipse


1.像Eclipse那樣快速跳出括弧
Keymap->Editor Actions->Complete Current Statement:預設是Ctrl+Shift+Enter;Shift+Enter則不管現在游標在哪個位置,直接新開一行


2.代碼提示列表(Eclipse中的Content Assist,Alt+/)
Keymap->Main Menu->Code->Completion->Basic:預設是Ctrl+Space


3.錯誤修正提示列表(Eclipse中的Quick Fix,Ctrl+1)
Keymap->Other->Show Intention Action:預設是Alt+Enter


4.快速Overried方法
Keymap->Main menu->Code->Override Methods:需要自己設定


5.Eclipse中的outline
Keymap->Main Menu->Navigate->File Structure:預設是Ctrl+F3


6.版本控制中Diff的Next和Prev
Keymap->Other->Move to the next difference:預設是Ctrl+f7
Keymap->Other->Move to the previous difference:預設是Shift+f7

聯繫我們

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