Sublime Forum

The shortcut "split selection into lines" isn't working for me


The shortcut “split selection into lines” doesn’t work, but if I click on the selection menu, there it works on my pc.

Has someone else the same problem?

And has someone a solution for this Problem?

Operating System: Windows 10 pro.

Thanks in advance :wink:



There are a few different reasons why a key binding may not do what you expect, which range from something stealing the key on you to a package rebinding it unexpectedly to something else and even keyboard layout problems in which Sublime doesn’t see keys as the keys that you’re pressing.

In order to diagnose which of those it is (if any) it can be helpful to turn on input logging with sublime.log_input(True) in the Sublime console (View > Show Console) and potentially also sublime.log_commands(True) as well. The first tells Sublime to display in its console what input it sees you entering, and the second tells it to log what command (if any) it’s executing as a result.

Using that can help determine what might be going wrong. This is also illustrated in more detail in this video on diagnosing key binding problems.

1 Like


Thanks for the fast answer!

“ctrl+shift+l” (l=L) it doesn’t show on the log’s. But “ctrl+l” or “shift+l” show up.

I have also added this in the user key map (has you have sugested in the video):

{ “keys”: [“ctrl+shift+l”], “command”: “split_selection_into_lines” }

But still it doesn’t work.

Any other ideas how I could fix this?

Thanks in advance!



If the input log doesn’t show the key when you press it, then something external is taking the key before Sublime can see it, or that key sequence is special in some other way. In that case, adding a binding for it in your user key bindings won’t work because Sublime’s just not seeing the key.

The only way to fix something like that would be to find whatever is using the key and stop it from doing that, or choose a different key binding and change your user binding to that.

1 Like