在你想要的浏览器中,点击设置,在里面找到设置为默认浏览器。 前提,vscode中安装了扩展live server 或者open in browser(也可以在open in browser中设置浏览器)