Frans Slabbekoorn
Frans Slabbekoorn

Reputation: 41

Shortcut for selecting previous or next item in outline panel

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.

Upvotes: 0

Views: 133

Answers (1)

Mark
Mark

Reputation: 180855

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"
}

Upvotes: 1

Related Questions