Home > Sublime Text > Sublime Text 3 Mouse Click Goto Definition

Step 1. Add the below settings to the file C:\Users\USERNAME\AppData\Roaming\Sublime Text 3\Packages\User\Default (Windows).sublime-mousemap

[
	{
		"button": "button1",
		"count": 1,
		"modifiers": ["ctrl"],
		"press_command": "drag_select",
		"command": "goto_definition"
	},
	{
		"button": "button2",
		"count": 1,
		"modifiers": ["ctrl"],
		"press_command": "jump_back",
		"command": "jump_back"
	}
]

Step 2. You can now click ctrl + left click to go to definition and click ctrl + right click to return.



Flag Counter