Visual Studio 在浏览器中打开代码
Visual Studio Code Opening in Browser
我下载了 VSC,最近为了一门课程,我在 ubuntu 中打开了 jupyter notebook。现在,当我在 VSC 中尝试 运行 我的程序时,它一直在 chrome 中打开浏览器并显示“无法访问此站点:本地主机无法连接”。我看了一些网站,他们说要删除
"action": "openExternally",
"pattern": "^\s*Now listening on:\s+(https?://\S+)"
},
来自 launch:json 文件。但是当我打开 launch.json 文件时,它显示
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
有人可以帮助我吗?
谢谢你的时间
删除(或注释掉)整个部分。
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
这是打开 chrome 的说明,因此如果您删除它,chrome 将无法在 运行 上打开。
将以下设置添加到运行 python正常-
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
有关详细信息,请查看 vs code page on launch.json config。
我下载了 VSC,最近为了一门课程,我在 ubuntu 中打开了 jupyter notebook。现在,当我在 VSC 中尝试 运行 我的程序时,它一直在 chrome 中打开浏览器并显示“无法访问此站点:本地主机无法连接”。我看了一些网站,他们说要删除
"action": "openExternally",
"pattern": "^\s*Now listening on:\s+(https?://\S+)"
},
来自 launch:json 文件。但是当我打开 launch.json 文件时,它显示
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
有人可以帮助我吗? 谢谢你的时间
删除(或注释掉)整个部分。
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
这是打开 chrome 的说明,因此如果您删除它,chrome 将无法在 运行 上打开。
将以下设置添加到运行 python正常-
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
有关详细信息,请查看 vs code page on launch.json config。