keyboard-shortcuts - Sublime 3 - 为函数 Goto 定义设置键映射

keyboard-shortcuts - Sublime 3 - 为函数 Goto 定义设置键映射

For anyone else who wants to set Eclipse style goto definition, you need to create .sublime-mousemap file in Sublime User folder.

Windows - create Default (Windows).sublime-mousemap in %appdata%\Sublime Text 3\Packages\User

Linux - create Default (Linux).sublime-mousemap in ~/.config/sublime-text-3/Packages/User

Mac - create Default (OSX).sublime-mousemap in ~/Library/Application Support/Sublime Text 3/Packages/User

Now open that file and put the following configuration inside

[

{

"button": "button1",

"count": 1,

"modifiers": ["ctrl"],

"press_command": "drag_select",

"command": "goto_definition"

}

]

You can change modifiers key as you like.

Since Ctrl-button1 on Windows and Linux is used for multiple selections, adding a second modifier key like Alt might be a good idea if you want to use both features:

[

{

"button": "button1",

"count": 1,

"modifiers": ["ctrl", "alt"],

"press_command": "drag_select",

"command": "goto_definition"

}

]

Alternatively, you could use the right mouse button (button2) with Ctrl alone, and not interfere with any built-in functions.

相关推荐

iPad换屏幕多少钱?官方与第三方维修价格解析
365bet篮球规则

iPad换屏幕多少钱?官方与第三方维修价格解析

📅 08-11 👁️ 3157
原神中什么克制雷元素 原神雷属性克制什么属性
英国bt365体育

原神中什么克制雷元素 原神雷属性克制什么属性

📅 07-28 👁️ 2846
《魔兽世界》搏击俱乐部在哪怎么进
office365账号永久激活

《魔兽世界》搏击俱乐部在哪怎么进

📅 07-30 👁️ 7357