Skip to content

554 - Keyboard Shortcuts

Editor keyboard shortcut bindings. This is an example of a MAML document.

maml
{
  editor: "vim"
  shortcuts: [
    {
      key: "Cmd+Shift+L"
      action: "format"
      when: "editor"
    }

    {
      key: "Ctrl+`"
      action: "toggle_terminal"
      when: "debug"
    }

    {
      key: "Ctrl+B"
      action: "find_references"
      when: "editor"
    }

    {
      key: "Alt+Up"
      action: "toggle_comment"
      when: "debug"
    }
  ]
}

See Also