visual studio code replace the terminal window environment conda

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 " 
    ] 
}

  

Guess you like

Origin www.cnblogs.com/7047-zfy/p/12625071.html