Search code examples
visual-studio-codewindows-10dialoguser-experience

What is the keyboard shortcut for selecting option or at least jumping to the VSCode dialogues?


When something like this appears and I want to select Overwrite without clicking, how to do it?
Especially on Windows 10.
fucking dialogue

I can't believe that I can't find a result for that, maybe googling unlucky keywords.


Solution

  • You can focus the toasts using notifications.focusToasts. This was added in version 1.21. There's also notifications.focusFirstToast and notifications.focusLastToast.

    There's also a command ID called notification.acceptPrimaryAction that might be what you want, depending on whether the action you want to accept is the primary action or not.