Skip to content

Instantly share code, notes, and snippets.

@benPesso
Last active August 29, 2015 14:02
Show Gist options
  • Save benPesso/41e02bb30f3a6b1cf206 to your computer and use it in GitHub Desktop.
Save benPesso/41e02bb30f3a6b1cf206 to your computer and use it in GitHub Desktop.
How to add a shortcut to "Go to definition..." by holding down Cmd + Alt and clicking on a object in sublime.
1. Create "Default (OSX).sublime-mousemap" in "~/Library/Application Support/Sublime Text 3/Packages/User".
2. Paste the following into the file and save it:
[
{
"button": "button1",
"count": 1,
"modifiers": ["super", "alt"],
"press_command": "drag_select",
"command": "goto_definition"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment