Search code examples
visual-studio-codekeyboard-shortcuts

How can I open the breadcrumbs dropdown using only the keyboard in VS Code?


In VS Code, Is there a way to open up the file selector dropdown, i.e. this: dropdown_example

with just the keyboard- such that I will be able to use the arrow keys + enter to switch files?


Solution

  • You can use the following commands (in the command palette, or use the corresponding keybinding):

    • Focus Breadcrumbs (On Windows and Linux, ctrl+shift+;. On macOS, use cmd instead of ctrl). You can then use the arrow keys and the enter and escape keys to navigate.

    • Focus and Select Breadcrumbs (On Windows and Linux, ctrl+shift+.. On macOS, use cmd instead of ctrl). You can then use the arrow keys to navigate.

    Corresponding source code (ctrl+f for "register2").