Created
August 1, 2013 20:53
-
-
Save kendellfab/6135193 to your computer and use it in GitHub Desktop.
Add mouse click `goto definition` in sublime text 3.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User | |
[ | |
{ | |
"button": "button1", | |
"count": 1, | |
"modifiers": ["ctrl"], | |
"press_command": "drag_select", | |
"command": "goto_definition" | |
} | |
] |
macOS Default (OSX).sublime-mousemap
in "~/Library/Application Support/Sublime Text 3/Packages/User/"
:
[
// ⌘+LeftClick => goto definition
{
"button": "button1",
"count": 1,
"modifiers": ["super"],
"press_command": "drag_select",
"command": "goto_definition"
},
// ⌘+RightClick => jump back
{
"button": "button2",
"modifiers": ["super"],
"command": "jump_back"
},
// ⌥+LeftClick => set multiple cursors
{
"button": "button1",
"count": 1,
"modifiers": ["alt"],
"press_command": "drag_select",
"press_args": {"additive": true}
}
]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want VS Code style, like
ctrl + button1
for definition andalt + button1
for selecting multiple lines, then paste this content instead: