So for some reason my intellisense is not working.
I tried the solutions suggested here Visual Studio Code: Intellisense not working .
The solution that seems to help most people is adding "python.autoComplete.extraPaths": [ "${workspaceFolder}/customModule" ]
, didn't work. Also VS Code says it doesn't recognize python.pythonPath
when I add it.
Auto-complete not working, screen capture didn't capture my cursor, but it's right after argparse.
, which should give the option to auto-complete with a list that includes: ArgumentParser
:
Remote server installed extensions:
Settings.json This is settings.json
on remote server
{
"remote.autoForwardPortsSource": "output",
"python.languageServer": "None",
"python.analysis.completeFunctionParens": true,
"python.analysis.diagnosticMode": "workspace",
}
Setup:
Note: Something else off is my "find declaration of function or class" is also not working.
the first solutions are kind of obvious, but ill add them anyway,
settings.json
, set a language server in "python.languageServer"
. The Language Server includes: Jedi
(build-in Python extension ), Microsoft
, Pylance
, since you have already installed Pylance
, let's start with that one (if that doesnt work, try the others). python.pythonPath
to the path returned in your terminal for which python3
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.