Web浏览器将打开vScode(Ubuntu和Live Server)
我正在尝试配置Visual Studio代码(在Ubuntu 22.04中)和。 当我运行Live Server时,它将打开我的Web浏览器(Firefox)的新窗口,并以VSCODE作为新窗口附上。 我希望Live Server打开Firefox,但没有使用VSCODE附加。而且,如果Firefox已经打开,它将在新标签中打开页面。 是否可以 ?有解决方法吗? 谢谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
瞧,我找到了一个解决方案。
我从卸载Firefox开始,然后安装了开发者版本(optional)。
为了创建图标,我创建了一个文件
.local/share/applications/firefox_dev.desktop
,我添加了:然后我将启动添加到码头中。
然后,我将Firefox设置为默认浏览器。
然后,我启动了VSCODE和LILVE服务器...这添加了一个新的
.local/share/applications/userApp-firefox开发人员版-***。桌面
file。我停止了服务器并关闭VSCODE。在此文件中,我通过以下方式替换了代码:
现在:
++
Voila, I found a solution.
I started by uninstalling Firefox, and I installed the Developer Edition (optional).
To create the icon, I created a file
.local/share/applications/firefox_dev.desktop
, in which I added:Then I added the launch to the dock.
Then I set Firefox as my default browser.
Then I launched VSCode and Liver Server... This added a new
.local/share/applications/userapp-Firefox Developer Edition-***.desktop
file. I stopped the server and closed VSCode.In this file I replaced the code by:
Now :
++