[英]How to enable intellisense for python in Visual Studio Code with anaconda3?
[英]How to get Intellisense on Visual Studio (VS) Code to work on Python
您是否嘗試過Ctrl+Space
或懸停一些代碼?
您還安裝了“Visual Studio IntelliCode”擴展嗎?
如果Ctrl+Space
和懸停都不起作用,建議重啟 VS Code ( https://code.visualstudio.com/docs/editor/intellisense#_troubleshooting )
Intellisense 由 Language Server 提供,默認值為Default
。
默認值:自動 select 語言服務器:Pylance(如果已安裝且可用),否則回退到 Jedi。
所以,你的問題有點奇怪,你可以嘗試安裝Pylance
並將其設置為語言服務器嗎? 在 settings.json 文件中添加:
"python.languageServer": "Pylance",
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.