How to open browser from Visual Studio Code API

前端 未结 3 1735
被撕碎了的回忆
被撕碎了的回忆 2021-02-20 00:38

I am just exploring a way in order to open the default browser from Visual Studio Code API used for developing extensions.

Following is my code :

var dis         


        
3条回答
  •  爱一瞬间的悲伤
    2021-02-20 01:14

    I had to use npm open url in order to open in browser.

    var openurl = require('openurl').open;
        openurl("http://google.com");
    

提交回复
热议问题