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











网友评论