You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grégoire Geis edited this page Jan 10, 2022
·
2 revisions
It may be tempting to use existing commands to open some menus, e.g. workbench.action.quickOpenView to open a specific view. However, most of these built-in commands have a significant shortcoming: they do not perform any filtering when typing.
Instead of using these commands, it is possible to open the Quick Open menu with a specific prefix. For instance, we can open the quickOpenView with a search box using:
{
// Search the view to open when pressing "v"."v": {
"command": "workbench.action.quickOpen",
"args": ["view "],
"when": "...",
},
}
To find more available prefixes, you can open the Quick Open menu and type ?.
{ // Search the view to open when pressing "v". "v": { "command": "workbench.action.quickOpen", "args": ["view "], "when": "...", }, }