github / VisualStudio

GitHub Extension for Visual Studio
https://visualstudio.github.com
MIT License
2.37k stars 1.21k forks source link

Select the python interpreter for IntelliSense in Visual Studio 2022 #2649

Open axelande opened 2 years ago

axelande commented 2 years ago

How do I select which Python environment my IntelliSense should work with? The code uses the correct venv but the IntelliSense uses the Python that is specified in the Windows path.

Running on Windows 10 Microsoft Visual Studio Community 2022 Preview (64-bit) Version 17.0.0 Preview 4.1 Visual Studio IntelliCode 2.2 Python with Pylance 17.0.21243.2 etc.