Sublime Forum

Scroll to selection: Setting shortcut on Linux

#1

On MacOS Scroll to selection has the Ctrl+L shortcut. On Linux it doesn’t seem to be set, so I’m wondering what should I use in my keymap to set it to Ctrl+L as well.

0 Likes

#2

you can open the Mac specific keybindings from any platform with PackageResourceViewer by looking in the Default package. The line in question is:

{ "keys": ["ctrl+l"], "command": "show_at_center" },

which can simply be copied into your user keymap to get the same shortcut action working on Linux - this will override the Linux default of:

{ "keys": ["ctrl+l"], "command": "expand_selection", "args": {"to": "line"} },
2 Likes