简体   繁体   中英

Shortcut for selecting previous or next item in outline panel in VSCode

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM