Home > Back-end >  Shortcut for selecting previous or next item in outline panel
Shortcut for selecting previous or next item in outline panel

Time:12-22

I want to customize a shortcut for selecting the previous or next item when the outline panel is focused instead of using down-arrow and up-arrow.

It seems like there is not an outline panel specific command for achieving this, but I haven't been able to find the correct one if it even exists.

CodePudding user response:

If the outline view is active, this should work, in your keybindings.json:

{
  "key": "alt d",              // whatever keybinding you want
  "command": "list.focusDown",
  "when": "outline.active && !editorTextFocus"
},
{
  "key": "alt u",              // whatever keybinding you want
  "command": "list.focusUp",
  "when": "outline.active && !editorTextFocus"
}
  • Related