VSCode中編輯markdown沒有typora來的舒服,但是VSCode中的文件又不能直接使用typora打開,必須先進入文件路徑,比較麻煩。
然后VSCode插件市場搜了一下,發現確實有這么一個插件:
只是沒有用,似乎在開發階段
使用Open in External App
而另外一個五星好評的插件Open in External App則可以在vscode中用typora打開md文件,不僅如此,還有設定其他應用打開相應的文件,比如chrome打開html。插件食用方法也比較簡單,安裝后,在settings.json
中將以下內容添加進去,注意在windows要更改 "openCommand"命令對應的程序路徑:
"openInExternalApp.openMapper": [
{
// represent file extension name
"extensionName": "html",
// 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": "chrome",
"openCommand": "/Applications/Google Chrome.app"
},
]
},
{
"extensionName": "md",
"apps": [
{
"title": "typora",
"openCommand":"/Applications/Typora.app"
}
]
},
]
添加好之后,雙擊md文件即可看到Open in External App
選項,點擊即可跳轉到typora。