vscode wsl ubuntu python自动补全

crl + shift +p 选择 “首选项:打开远程设置(WSL: Ubuntu-18.04)”
image.png
setting.json 中填入如下内容

1
2
3
4
5
6
{
"python.autoComplete.addBrackets": true,
"python.autoComplete.extraPaths": [
"/home/admin/.local/lib/python3.6/site-packages",
],
}