如何在 mac 上更改 Sublime Text 3 的 SublimeCodeIntel 键绑定?
how to change SublimeCodeIntel key binding for Sublime Text 3 on mac?
对于SublimeCodeIntel,默认键绑定如下:
- 跳转到定义= Ctrl + Click
- 跳转到定义= Ctrl + Cmd + Alt + Up
- 返回 = Ctrl + Cmd + Alt + Left
- 手动代码智能=Ctrl + Shift + space
SublimeCodeIntel 默认键盘映射:
[
{ "keys": ["shift+ctrl+space"], "command": "code_intel_auto_complete" },
{ "keys": ["super+alt+ctrl+up"], "command": "goto_python_definition"},
{ "keys": ["super+ctrl+space"], "command": "back_to_python_definition"}
]
SublimeCodeIntel 默认鼠标绑定:
[
{ "button": "button1", "modifiers": ["ctrl"], "command": "goto_python_definition", "press_command": "drag_select" }
]
我想把"Go back"的快捷键改成Ctrl+右键,怎么做?任何人都可以帮助我吗?提前致谢!
我找到了一个方法:
[
{
"button": "button1",
"count": 1,
"modifiers": ["ctrl"],
"press_command": "drag_select",
"command": "goto_definition"
},
{
"button": "button2",
"count": 1,
"modifiers": ["ctrl"],
"command": "back_to_python_definition"
}
]
对于SublimeCodeIntel,默认键绑定如下:
- 跳转到定义= Ctrl + Click
- 跳转到定义= Ctrl + Cmd + Alt + Up
- 返回 = Ctrl + Cmd + Alt + Left
- 手动代码智能=Ctrl + Shift + space
SublimeCodeIntel 默认键盘映射:
[
{ "keys": ["shift+ctrl+space"], "command": "code_intel_auto_complete" },
{ "keys": ["super+alt+ctrl+up"], "command": "goto_python_definition"},
{ "keys": ["super+ctrl+space"], "command": "back_to_python_definition"}
]
SublimeCodeIntel 默认鼠标绑定:
[
{ "button": "button1", "modifiers": ["ctrl"], "command": "goto_python_definition", "press_command": "drag_select" }
]
我想把"Go back"的快捷键改成Ctrl+右键,怎么做?任何人都可以帮助我吗?提前致谢!
我找到了一个方法:
[
{
"button": "button1",
"count": 1,
"modifiers": ["ctrl"],
"press_command": "drag_select",
"command": "goto_definition"
},
{
"button": "button2",
"count": 1,
"modifiers": ["ctrl"],
"command": "back_to_python_definition"
}
]