VSCode的配置 PyCharm的享受
May 20, 2021, 8:55 p.m.
read: 2514
0x01
.vscode/settings.json
{
"python.pythonPath": "Python解释器的路径",
"python.envFile": "${workspaceFolder}/.vscode/.env"
}
.vscode/.env
PYTHONPATH="当前项目的绝对路径"
.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"cwd": "${fileDirname}"
}
]
}