Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux下没有识别默认浏览器 #23

Open
yuanpeilin opened this issue May 21, 2021 · 1 comment
Open

linux下没有识别默认浏览器 #23

yuanpeilin opened this issue May 21, 2021 · 1 comment

Comments

@yuanpeilin
Copy link

当我设置文件默认的打开方式为浏览器时, 插件可以很好的工作, vscode中按下Ctrl + 1可以把文件在浏览器中打开
Screenshot from 2021-05-21 20-42-32
但当我把文件的默认打开方式设置为文本编辑器时, vscode中按下Ctrl + 1却是把文件在文本编辑器中打开了
Screenshot from 2021-05-21 20-46-25

插件的版本为v2.1.4, vscode的版本为1.56.2

@peakchen90
Copy link
Owner

@yuanpeilin
你可以试一下开启 “使用本地HTTP服务打开” 选项,这样可以保证通过默认浏览器打开指定文件。
目前暂时不能保证使用默认浏览器打开 file:// 协议的文件,如果有好的建议,欢迎PR

如何开启 “使用本地HTTP服务打开” 选项 TIPS:

打开“设置” -> 搜索 openInDefaultBrowser.run.openWithLocalHttpServer -> 勾选启用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants