vscode中打開typora

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。
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章