使用Open in External App插件,该插件可以设定指定文件类型的打开方式,例如md,pdf,html等等:
在vscode的settings.json文件中加入以下配置即可:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{ "openInExternalApp.openMapper":[ { // represent file extension name "extensionName":"md", // the external applications to open the file which extension name is html "apps":[ // openCommand can be shell command or the complete executable application path // title will be shown in the drop list if there are several apps { "title":"Typora", "isElectronApp":true, }, ] }, ] }