'update'
This commit is contained in:
23
.vscode/settings.json
vendored
Normal file
23
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"python.defaultInterpreterPath": "/Users/gavin/venv/bin/python",
|
||||
"python-envs.pythonProjects": [
|
||||
{
|
||||
"path": "/Users/gavin/venv",
|
||||
}
|
||||
],
|
||||
// 指定 Python 解释器为你的虚拟环境
|
||||
|
||||
// 在终端打开时自动激活虚拟环境
|
||||
"python.terminal.activateEnvironment": true,
|
||||
|
||||
// 可选:指定 VS Code 使用的 shell
|
||||
// 如果想自动 source venv,即使没有选择 Python 解释器
|
||||
"terminal.integrated.profiles.osx": {
|
||||
"zsh_with_venv": {
|
||||
"path": "/bin/zsh",
|
||||
"args": ["-c", "source ~/venv/bin/activate; exec zsh"]
|
||||
}
|
||||
},
|
||||
"terminal.integrated.defaultProfile.osx": "zsh_with_venv",
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user