(This question is specifically for the Mac, but you may enlighten Windows users if you want!)
What is the command for 'Goto Line...' to change the shortcut as it's down for 'Goto Definition...' like below:
[
{ "keys": ["cmd+D"], "command": "goto_definition" }
]
To Move Lines Up / Down ⌥ + ⌘ + ↑ / ⌥ + ⌘ + ↓ (⇧ + CTRL + ↑ / ⇧ + CTRL + ↓ on Windows)
On Windows, use “End” and “Home” keys to go to the end/beginning of a line. It should also be noted that what you're describing is the default behavior of ctrl-left/right for any application that edits text (word processor, text editor, etc…) for both Windows and Linux.
You can find out what command is being executed by opening the console (Ctrl`) and entering
sublime.log_commands(True)
Keeping the console open, select Goto -> Goto Line...
or hit the key combo CtrlG, and the following appears:
command: show_overlay {"overlay": "goto", "text": ":"}
Therefore, the keymap definition would be:
{ "keys": ["ctrl+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }
You can change the "ctrl+g"
to whatever you want in your user key bindings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With