diff --git a/previewhtml-sample/package.json b/previewhtml-sample/package.json index 41ccbf99..4174e1f5 100644 --- a/previewhtml-sample/package.json +++ b/previewhtml-sample/package.json @@ -33,7 +33,15 @@ "command": "extension.showCssPropertyPreview", "title": "Show CSS Properties Preview" } - ] + ], + "menus": { + "editor/title": [ + { + "command": "extension.showCssPropertyPreview", + "when": "resourceLangId == css" + } + ] + } }, "scripts": { "vscode:prepublish": "node ./node_modules/vscode/bin/compile",