vs code python — Unresolved Import Warning

Syarif Hidayatullah
2 min readNov 12, 2019

--

It’s been an hour looking for answer how to Go To Definition like I used to use in PyCharm previously.

couldn’t even go to definition

First, Make sure the python environment has been set. I found out that I haven’t set the python environment, so obviously the vs code couldn’t detect the particular python executor.

bottom left panel

It’s better to have virtual environment in every python project.

Second, make sure `python.jediEnabled` is `True`

Go to command pallet and type: Configure Language Specific and choose python

settings.json will open and you might see the python.jediEnabled is in False value. Change it into True value or comment it, work both ways.

After that, restart the vscode and your python vs code can use go to definition feature.

--

--

Responses (6)