快捷鍵
Preferences -> keymap ->
-
command + d
刪除一行:delete line
-
command + shift + F
格式化代碼:reformat code
-
command + shift + R
切換代碼文件:File...
-
control + R
全局替換:Replace in Path...
-
command + shift + o
刪除無用import
:Optimize Imports...
-
alt + command + 方向下
復制選中行到下面:duplicate entire lines
-
command + shift + g
搜索引用:Find Usages
代碼模版
添加模版 Preferences -> Live Templates ->
tmb : Timber.e(">>> $name$"+$value$);
loge : android.util.Log.e(" >>> ", "$METHOD_NAME$: $content$" + $exception$);
字體
- 更改字體
Preferences -> Appearance
- 字體推薦
inconsolata
其他
設置
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
提示不區分大小寫,因此我們要改成大小寫不敏感
Preferences -> code completion -> case sensitive completion: none;
自動
import
:
Preference -> auto import
代碼提示(alt + /):
Preference -> Keymap -> Completion -> Basic