Sublime Emmet Ctrl+E shortcut conflict

Sublime中’Ctrl+e’快捷键跟Emmet插件冲突

习惯了在Mac下用Ctrl+e快捷键快速移动光标到行尾,但是当我在Sublime编辑中安装了Emmet插件之后(一个前端神器),却发现Ctrl+e冲突,解决方法如下:

sublime text -> Perferences -> Package Settings -> Emmet -> Key Bindings-User

并且插入以下代码,目的是覆盖Key bindings-default里的设置, 最后重启Sublime即可

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[
{
"keys": [
"super+j"
],
"args": {
"action": "expand_abbreviation"
},
"command": "run_emmet_action",
"context": [
{
"key": "emmet_action_enabled.expand_abbreviation"
}
]
},
{
"keys": [
"ctrl+e"
],
"command": "move_to",
"args": {"to": "eol", "extend": false}
}
]