Skip to content

Instantly share code, notes, and snippets.

@anhtuank7c
Forked from kendellfab/goto-sublime
Created November 12, 2019 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anhtuank7c/02daa57c7e7b1abc08e974631e9ad3f9 to your computer and use it in GitHub Desktop.
Save anhtuank7c/02daa57c7e7b1abc08e974631e9ad3f9 to your computer and use it in GitHub Desktop.
Add mouse click `goto definition` in sublime text 3.
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"
}
]
@anhtuank7c
Copy link
Author

Mac Command + Click

[
    // TypeScript
    {
        "button": "button1",
        "count": 1,
        "modifiers": ["super"],
        "press_command": "drag_select",
        "command": "typescript_go_to_definition",
        "context": [
             { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js" }
        ]
     }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment