В VS Code можно программно открывать инструменты разработки? - PullRequest
1 голос
/ 14 июля 2020

В VS Code вы можете использовать палитру команд для открытия инструментов разработчика

enter image description here

Is it possible to programmatically open it? I scanned through the API , но не нашли его.

1 Ответ

2 голосов
/ 15 июля 2020

Один из способов найти его - открыть сочетания клавиш в настройках

enter image description here

So apparently the command is called workbench.action.toggleDevTools which you can execute as

vscode.commands.executeCommand('workbench.action.toggleDevTools');

On Windows it's File->Preferences->Keyboard Shortcuts

enter image description here

On Mac it's Code->Preferences->Keyboard Shortcuts

enter image description here

Of course you can also press Ctrl-Shift-P/Cmd-Shift-P and type "keyb" and it will show up.

введите описание изображения здесь

...