Setting a keybinding for a command not already mapped


Hi all,

I am trying to create a keybinding for a command which I cannot see in the Keybindings options in settings. I don’;t know how to find the command to call. I want to set a keybinding for “Split into Lines” can anyone tell me the name of the command to put in my Keymap file please?




I’m guessing that feature requires loading a package. Does it show up when you do a ctrl-shift-P ?


I assume you’re talking about the menu item Selection > Split into Lines? If so, the command name is editor:split-selections-into-lines. I found that by:

  1. Opening the command palette (Cmd+Shift+P on OS X)
  2. Searching for “split”
  3. Finding the command “Editor: Split Selections Into Lines”
  4. Converting the humanized text to editor:split-selections-into-lines