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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM