1. Open visual studio, click on File-> Preferences → Settings, find the following Features Terminal, point Edit in settings.json
2. Locate the Anaconda Prompt file is located, right mouse button to view the properties, the value of the target copied out in
I was% windir% \ System32 \ cmd.exe "/ K" E: \ Miniconda2 \ Scripts \ activate.bat E: \ Miniconda2
The "/ K" and E: \ Miniconda2 \ Scripts \ activate.bat E: \ copy Miniconda2 to terminal.integrated.shellArgs.windows
3. the modified example corresponding to the value assigned to the good after settings.json
Examples are as follows:
{ "Python.pythonPath": "E: \\ Miniconda2 Envs \\ \\ \\ python36_test python.exe", // choose the default Python environment, you can not write "terminal.integrated.shell.windows": "C : \\ Windows \\ System32 \\ cmd.exe ", " terminal.integrated.shellArgs.windows ": [ " / K ", " E: \\ Scripts \\ \\ Miniconda2 activate.bat E: \\ Miniconda2 " ] }