快捷键
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