Skip to content

Instantly share code, notes, and snippets.

@cecilemuller
Last active August 15, 2023 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cecilemuller/e54812bb34c2e68f5d7bbcc26221c932 to your computer and use it in GitHub Desktop.
Save cecilemuller/e54812bb34c2e68f5d7bbcc26221c932 to your computer and use it in GitHub Desktop.
VSCode: Open Webview Developer Tools automatically
/* eslint-env node */
"use strict";
const vscode = require("vscode");
function activate(context) {
const provider = new ExampleProvider(context.extensionUri);
context.subscriptions.push(
vscode.window.registerWebviewViewProvider("example", provider)
);
// ...
// Open Webview Developer Tools
vscode.commands.executeCommand("workbench.action.webview.openDeveloperTools");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment