如何在Mac上更改Sublime Text 3的SublimeCodeIntel键绑定?

时间:2017-02-08 09:47:05

标签: sublimetext3 keyboard-shortcuts sublimecodeintel

对于SublimeCodeIntel,默认键bingding如下:

  • 跳转到定义= Ctrl +单击
  • 跳转到定义= Ctrl + Cmd + Alt + Up
  • 返回= Ctrl + Cmd + Alt + Left
  • 手动代码智能= Ctrl + Shift +空格

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" }
]

我想将“返回”的键绑定更改为 Ctrl +右键单击,如何制作?有人可以帮帮我吗?提前谢谢!

1 个答案:

答案 0 :(得分:1)

我找到了一种方法:



[
    {
        "button": "button1", 
        "count": 1, 
        "modifiers": ["ctrl"],
        "press_command": "drag_select",
        "command": "goto_definition"
    },
    {
        "button": "button2", 
        "count": 1, 
        "modifiers": ["ctrl"],
        "command": "back_to_python_definition"
    }
]