-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Description
I want to open the Typora in vscode to view markdown files. So I download the extension "Power Tools", and add follow text in settings.json
"ego.power-tools.user": { "buttons": [ { "text": "Typora", "tooltip": "Open file in Typora editor", "action": { "type": "command", "command": "typora.open" }, "onEditorCreated": "if ($vs.window.activeTextEditor.document.languageId === 'md') { $v['button'].enable(); $v['button'].color = ''; } else { $v['button'].disable(); $v['button'].color = 'grey';}", "onEditorChanged": "if ($vs.window.activeTextEditor.document.languageId === 'md') { $v['button'].enable(); $v['button'].color = ''; } else { $v['button'].disable(); $v['button'].color = 'grey';}" } ] }
the button will show but when I click it, I can not open Typora and get a tip "No active editor or URI available"
I have already installed Typora and add to PATH, so how should I do ? Thank you very much !