It takes some time to use ```Anacondaand Minicondain the PowerShellenvironment.  [This article](https://qiita.com/8128/items/877caf785b20758ba7e0), [This article](https://qiita.com/yniji/items/668f805a72a6ced6a2bd) and [This article](https://www) Like .gesource.jp/weblog/?p=8254), every time you want to "develop", you need to change the execution policy.  Alternatively, you can save yourself the trouble of entering commands every time, knowing the security risks.  Alternatively, you can give up PowerShelland set cmd`` as the default terminal.
In this article
・ ** Without typing troublesome commands every time **,
・ ** Security can be guaranteed **,
・ It can be realized with **  PowerShell **
I will show you how.
 VS Code. conda init powershell in the terminal and execute. PowerShell and  Install the one that appears at the top. VSCode just in case. PowerShell Command Explorer ( PowerShell icon) should be added on the left side, so click it.
                  =====> PowerShell Integrated Console <=====
(base) PS C:\Users\Honyara\Documents\Hogehoge\src> 
$ Get-ExecutionPolicy -List
        Scope ExecutionPolicy
        ----- ---------------
MachinePolicy       Undefined
   UserPolicy       Undefined
      Process          Bypass
  CurrentUser       Undefined
 LocalMachine       Undefined
Since it is a  Process unit, there is no problem in terms of security.
In the current state, when you want to use  PowerShell normally, it should be annoying to be told that  profile.ps1 cannot be loaded.
Eliminate it.
 $ env: USERPROFILE \ Documents \ WindowsPowerShell. profile.ps1 should have been created in the previous step, rename it to  Microsoft.VSCode_profile.ps1.The author's OS is Windows 10 64bit
Recommended Posts