iBook/.vscode/settings.json

24 lines
692 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"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",
]
}