The year is 2026 and I still can't figure out how to get vscode to pick up on the current Pro python environment. I can select specific interpreters just fine but it's easy to get out of sync with Pro's environment, which can wreak havoc on testing.
Is there a proper solution to this? Prior answers seemed to work a bit but they involve adding the Conda scripts directory to the current PATH which goes against Conda guidelines. I figured out how to get a terminal profile added for Python work ...
"terminal.integrated.profiles.windows": {
"Python": {
"overrideName": true,
"path": "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\Scripts\\proenv.bat",
"icon": "python"
}
}... but that doesn't handle the current interpreter. It looks like the Python extension adds a new environments view but it's clearly designed around venv and trying to view the packages in a conda environment just spits out a "Conda not found" error. How helpful.
If there isn't a full solution, little tips and tricks are still worth posting. Thanks!