43.1.6.1. Visual Studio Code

../_images/image05215.png

Figure 43.5 Visual Studio code Main Window

../_images/image05313.png

Figure 43.6 Python search results in the extension Tab

  1. Search Python in Extension tab and Install Python extension

  2. Set up Python extension. (GUI)

    ../_images/image05416.png

    Figure 43.7 Python Extension Context Menu strip

    1. Add package path in Python › Auto Complete: Extra Paths <Install Dir>\bin\python\Lib

    2. If you want to use a different version of python, Modify Python: Python Path

    3. When using Pylance Intellisense server, Add package path in Python › Analysis: Extra Paths

  3. Set up Python extension. (setting file)

  4. Search for Python › Auto Complete: Extra Paths

  5. Click Edit in settings.json

    ../_images/image05215.png
  6. Add package path in python.autoComplete.extraPaths

    " python.autoComplete.extraPaths": [
       "<RecurDyn Install dir>\Bin\Python\Lib"
    ]
    
  7. If you want to use a different version of python, add python.pythonPath

    "python.pythonPath": ""<Python Install dir>\python.exe",
    
  8. When using Pylance Intellisense server, Add package path in Python › Analysis: Extra Paths

    "python.analysis.extraPaths": [
       "<RecurDyn Install dir>\Bin\Python\Lib"
    ]