Home >Development Tools >sublime >How to configure ctrl + left mouse button for function jump in sublime text3

How to configure ctrl + left mouse button for function jump in sublime text3

藏色散人
藏色散人forward
2019-11-08 13:30:157837browse

The following column sublime usage tutorial will introduce to you how to configure sublime text3 with ctrl and the left mouse button to perform function jumps. I hope it will be helpful to friends in need!

How to configure ctrl + left mouse button for function jump in sublime text3

##Click Preferences->Browse Packages to enter the Packages directory, then open the User directory and check if there is a Default (Windows).sublime-mousemap file in the User directory. If not, then Create. This file is used to configure sublime's mouse operations. Enter the following content in the file:

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

Click save.

ctrl: Use the left mouse button to jump to the function definition;

ctrl: Use the right mouse button to jump back.

Note

If saving the file as Default (Windows).sublime-mousemap does not work, try saving the file as Default.sublime-mousemap

The above is the detailed content of How to configure ctrl + left mouse button for function jump in sublime text3. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete