Intellisense step by step configuration on visual studio code

Hi all,
I just found a way to configure the intellisense in visual studio code and I thought it might be useful to others :slight_smile:

here below there are the steps to follow:

1 - INSTALL VISUAL STUDIO CODE
you can download the software here

2 - INSTALL THE PYTHON PACKAGE FOR VS CODE
you can download it here

3 - DOWNLOAD THE IRONPYTHON STUBS FROM @Gui_Talarico github

4 - CONFIGURE JSON SETTINGS IN VS CODE

  • a_____ if you have it opened, restart VS code

  • 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
    image

5 - Now you’re done, just hit ALT+f4 on VS code, save the settings and restart VS code.

6 - Have fun :sunglasses: :facepunch: :fire:

25 Likes