Ubuntu sublime text3配置ctrl+鼠标左键进行函数跳转

使用ctrl+鼠标左键代替F12进行函数跳转,ctrl+鼠标右键返回函数函数调用,shift+鼠标查找该函数的引用

点击Preferences(首选项)->Browse Packages(浏览插件)进入Packages目录,然后打开User目录,查看User目录里面有没有Default.sublime-mousemap文件,如果没有则创建一个。这个文件是用来配置sublime的鼠标操作的,内容如下:

[
  {
    "button": "button1",
    "count": 1,
    "modifiers": ["shift"],
    "command": "goto_reference"
  },

  {
    "button": "button2",
    "count": 1,
    "modifiers": ["ctrl"],
    "command": "jump_back"
  },

  {
    "button": "button1",
    "count": 1,
    "modifiers": ["ctrl"],
    "press_command": "drag_select",
    "command": "goto_definition"
  }
]
posted @ 2021-01-10 00:39  丁培飞  阅读(415)  评论(0编辑  收藏  举报