因为已经习惯ctrl+e快捷键跳转到行尾的功能,所以需要自定义快捷键。
自定义的原理是,用一个命令去覆盖emmet的快捷键ctrl+e的自动补全功能,再把ctrl+e快键键设置成mac原有的跳转到行尾的功能。
找到sublime text -> Perferences -> Package Settings -> Emmet -> Key Bindings-User
添加代码:
[
{
"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}
}
]