【问题标题】:how to change SublimeCodeIntel key binding for Sublime Text 3 on mac?如何在 mac 上更改 Sublime Text 3 的 SublimeCodeIntel 键绑定?
【发布时间】:2017-06-25 20:46:02
【问题描述】:

对于SublimeCodeIntel,默认键绑定如下:

  • 跳转到定义 = Ctrl + 单击
  • 跳转到定义 = Ctrl + Cmd + Alt + Up
  • 返回 = Ctrl + Cmd + Alt + 左键
  • 手动代码智能 = 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+右键,如何实现?任何人都可以帮助我吗?提前致谢!

【问题讨论】:

    标签: sublimetext3 keyboard-shortcuts sublimecodeintel


    【解决方案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"
        }
    ]

    【讨论】:

    • @KevinRED 路径:“首选项->包设置->SublimeCodeIntel->设置-用户”
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-06
    • 2012-08-27
    • 2023-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多