MacOS miniforge3 vscode设置第三方库路径和自动代码补全
首先,安装插件Visual Studio IntelliCode。
vscode设置中搜索python.autoComplete.extraPaths,最好在全局设置中修改,选Edit in settings.json,
在"python.autoComplete.extraPaths"中添加miniforge安装目录和site-packages目录,例如:
"python.autoComplete.extraPaths": [
"/Users/yourname/miniforge3/",
"/Users/yourname/miniforge3/pkgs/"
]