1: 假设你已经安装了anaconda3
然后安装了vscode , 怎么配置才可以在写代码时候可以自动补齐
方法如下:
1: ctrl + p 会弹搜索框, 输入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": "node",
// "request": "launch",
// "name": "Launch Program",
// "program": "${file}"
//}
{
"name": "Python: 当前文件",
"type": "python",
"request": "launch",
"stopOnEntry": false,
"pythonPath": "/home/zh/anaconda3/bin/python3",
"program": "${file}",
"cwd": "${workspaceFolder}",
"env": {},
"envFile": "${workspaceFolder}/.env",
"console": "integratedTerminal",
}
]
}
找到setting.json 修改为
{
"python.pythonPath": "/home/zh/anaconda3/bin/python3",
"python.linting.enabled": false
}
完毕, 这样写代码时候就可以自动补齐了,很棒`