-
Notifications
You must be signed in to change notification settings - Fork 60
VS Code: using Quick Open
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 ?
.