Tapi untuk mempermudah dan konsisten dengan aplikasi lain yang saya gunakan seperti visualcode, atom dsb, maka untuk membuat goto-definition dengan akse control click adalah :
1. Buka menu preferences->browse packages
2. masuk folder user
3. buat file text dengan nama filenya : Default (Windows).sublime-mousemap
4. isikan kedalam file :
[
{
"button": "button1",
"count": 1,
"modifiers": ["ctrl"],
"press_command": "drag_select",
"command": "goto_definition"
}
]
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" | |
} | |
] |
Maka fungsi control+click akan berlaku
Sumber dari : https://gist.github.com/kendellfab/6135193
No comments:
Post a Comment