Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the command that Ctrl-Q triggers on VSCode (Windows)

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.

like image 362
MauricioRobayo Avatar asked Nov 14 '25 11:11

MauricioRobayo


1 Answers

When we do not have access to VSC on given platform

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.


When we have VSC on platform at hand

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:

Visual Studio Code - Keyboard Shortcuts settings page with filter set to "ctrl+q" and "Recording Keys" toggle active; results show relevant bindings


  • GitHub code search sadly ignores all non-alphanumerics

    . , : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } [ ] @

like image 179
myf Avatar answered Nov 17 '25 08:11

myf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!