On Windows VSCode ctrl+q shows a menu with the items on the activity bar.
What is that command?
I switch to Linux and want to add a key binding to that command (not map by default as on Linux ctrl+q quits the program) but cannot find it and don't have a Windows machine at hand to look on the key bindings and doesn't seem to be listed here.
It should be possible to sift through the sources.
In this case we are looking for Ctrl that should be CtrlCmd and Q KeyQ in KEYBINDING of some module class, so something like:
static readonly ID = 'workbench.action.quickOpenView';
static readonly KEYBINDING = {
primary: KeyMod.CtrlCmd | KeyCode.KeyQ,
mac: { primary: KeyMod.WinCtrl | KeyCode.KeyQ },
linux: { primary: 0 }
};
(Yes, that's exactly it and I've started from here backwards.)
Slightly convoluted GitHub search query *
KEYBINDING KeyMod CtrlCmd KeyCode KeyQ repo:microsoft/vscode path:*.ts
should bring us there so we now have the command ID: workbench.action.quickOpenView.
It is easy as using the 'Record keys' feature in the Keyboard Shortcuts settings pane to find this information (either clicking the "Keyboard" icon or using Alt+K) where we should find that Ctrl+Q is by default bound to View: Quick Open View:

GitHub code search sadly ignores all non-alphanumerics
. , : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } [ ] @
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With