我放弃这插件,而使用了 open in default browser 插件
谷歌浏览器的启动名称是 google-chrome-stable 吧
open in default browser 不能重新保存代码就自动刷新,live server 插件更好
谷歌浏览器的启动名称是 google-chrome-stable 吧
感谢您的回复,我在vscode 官方文档中找到这段话:you do not need to set opn-in-browser.default a very accurate value, as long as the value matches any of the following terms, I will handle it: Chrome values: chrome, google chrome, google-chrome, gc Firefox values: firefox, mozilla firefox, ff IE values: ie, iexplore Safari values: safari Opera values: opera Chromium values: chromium Firefox Developer Edition values: firefox developer, fde, firefox developer edition Edge values: edge, msedge, microsoftedge,
而后我去 chromium浏览器> 设置> 默认浏览器> "Chromium 无法确定或设置默认浏览器" , 发现了这样一句话
然后去 chrome 浏览器> 设置> 默认浏览器> "Google Chrome 无法确定或设置默认浏览器", 又发现了类似的话
由此可见,好像是 deepin 禁止设定默认浏览器导致的
但是,open in default browser 和 live server 却能正常运行,这令我质疑上一句话的结论,难道是open in browser 与其他插件调用浏览器的方式不一样吗?
关于这一点我证明不了,因为我不知道怎么监测open in browser 具体执行过程
再次感谢您的回答
我也遇到这个问题了,然后我看了一下插件的说明中,没有说支持linux,估计这个插件就不支持linux,官方推荐使用xdg-open(原话:otherwise uses ths xdg-open script from freedesktop.org)
Popular Events
More

中文 
系统: deepin 20.2.2
vscode:
Version: 1.56.2
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T16:45:26.313Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Linux x64 5.10.36-amd64-desktop
问题:
设置默认打开浏览器为 chromium: vim $HOME/.config/Code/User/settings.json
尝试过改成 chrome, 但无效
报错: Open browser failed!! Please check if you have installed the browser correctly!
求助: 请问应该怎么设置才好呢?