I'm using Visual Studio Code (VSCode) to do some Python programming on a Mac. I use conda for my Python environments. When I open a folder from within VSCode (using File -> Open... from the menu), it opens the selected folder of Python files. I select a Python file to edit it and VSCode selects my default conda environment which is named base. When I open the integrated VSCode terminal, it also uses the base conda environment. A screen capture of this process is shown below.
I can also start VSCode from the macOS terminal using the code command. From within the Mac terminal, I cd to the folder containing the Python files. From within the directory, I open VSCode using the code . terminal command. I select a Python file to edit it and VSCode selects my default conda environment which is named base. When I open the integrated VSCode terminal, it says I'm using the base conda environment. However, the integrated VSCode terminal is not using conda environment Python and packages. A screen capture of this is shown below.
My VSCode settings are:
{
"telemetry.telemetryLevel": "off",
"python.condaPath": "/opt/miniconda3/bin/conda",
"python.defaultInterpreterPath": "/opt/miniconda3/bin/python",
"python.pythonPath": "/opt/miniconda3/bin/python",
"python.terminal.activateEnvInCurrentTerminal": true,
"python.terminal.activateEnvironment": true,
"python.linting.flake8Args": [
"--max-line-length=120"
],
"breadcrumbs.enabled": false,
"terminal.integrated.defaultProfile.osx": "zsh",
"terminal.explorerKind": "external",
"terminal.integrated.inheritEnv": false,
"python.linting.flake8Enabled": true,
"editor.fontSize": 13,
"terminal.integrated.fontSize": 13,
"workbench.colorTheme": "Dracula Soft",
}
How can I make the integrated VSCode terminal use the default conda environment when the app is started from the macOS terminal?

