Home > Blockchain >  Shortcut for selecting previous or next item in outline panel in VSCode
Shortcut for selecting previous or next item in outline panel in VSCode

Time:12-21

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

It seems like there is not a 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"
},
{
  "key": "alt u",              // whatever keybinding you want
  "command": "list.focusUp",
  "when": "outline.active"
}
  • Related