b_____ file > Preferences > Settings (or Ctrl + comma if you’re on windows 10)
c_____ you should see a search bar, then just below it there are 2 buttons, User Settings and Workspace Settings. Look at the right of those buttons and you will see 3 dots, click this button and then Open Json settings
d_____ on the Search Settings bar, type “python.linting.enabled” then move the cursor over it and you should see a little pencil on its left, click Edit then True. If everything is ok, you should see a line of code added to the right window of VS code
e_____ same bar, type “python.linting.pep8Enabled”, again, pencil > edit > true
f_____ same bar, type “python.pythonPath”, click on the pencil, then Replace in settings, here you should have a line like this one “python.pythonPath”: “C:\Python27\python.exe” (copy and paste with " " included, don’t forget to type a comma at the end of the line) Btw if the installation path does not match the one on your PC, just point it to the right folder, you need to provide python.exe of the 2.7 version
g_____ same bar, type “python.autoComplete.extraPaths”, replace in settings, and here you need to provide the downloaded stub.min file from the step 3. Here an example from my PC
5 - Now you’re done, just hit ALT+f4 on VS code, save the settings and restart VS code.
pep8 linting seems to be a very personal thing, I for example like to ignore warnings for some pep8 errors, others may want to have a pure pep8 experience, so for what its worth…
I’m not a program developer, I am just trying to learn if you have something to ask, your best bet is to create a post on this forum, someone will help you maybe me! (if you ask newbie questions)
Tryed that… Didn’t work either
Edit: I managed to find the problem. I was installing python 2.7.0. This version does not have all the tools necessary for the intelissence. I uninstalled and installed python 2.7.15 and it worked perfectly.
Hello,
I am running into issues where VS Code doesn’t appear to see my python correctly? Here is my user settings currently, and I installed python 2.7.15.
Also, Pep8 and Pylint are linting programs is not necessarily related to working autocompletion and the stubs.
I recommend you turn it those off until you understand the setup better (pep8 is off by default)
After beating my head against the wall for some time I have found that “python.pythonpath” no longer exists. The new config is “python.defaultInterpreterPath”