Android Studio 偏好設置

快捷鍵

Preferences -> keymap ->

  1. command + d刪除一行:delete line
  2. command + shift + F格式化代碼: reformat code
  3. command + shift + R切換代碼文件:File...
  4. control + R全局替換:Replace in Path...
  5. command + shift + o刪除無用import:Optimize Imports...
  6. alt + command + 方向下復制選中行到下面:duplicate entire lines
  7. command + shift + g搜索引用:Find Usages

代碼模版

添加模版 Preferences -> Live Templates ->

  1. tmb : Timber.e(">>> $name$"+$value$);
  2. loge : android.util.Log.e(" >>> ", "$METHOD_NAME$: $content$" + $exception$);

字體

  1. 更改字體
    Preferences -> Appearance
  2. 字體推薦
    inconsolata

其他

  1. 設置command + 左鍵control + 左鍵同樣功能
    Preferences -> Keymap -> Search for "Declaration" -> double click on the search result under the 'Navigate' category -> select "add mouse shortcut" -> and press the shortcut buttons (eg. CMD+left click) and save it

  2. 提示不區分大小寫,因此我們要改成大小寫不敏感
    Preferences -> code completion -> case sensitive completion: none;

  3. 自動import
    Preference -> auto import

  4. 代碼提示(alt + /):
    Preference -> Keymap -> Completion -> Basic

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容