Vs Code terminal cannot use command solution

Time:2021-6-14

After vscode creates a new terminal, you cannot enter a command or choose which terminal to use.

Solution:
1. Run vscode as an administrator
2. To create a new terminal, use the following command to display restricted, which means to prohibit the terminal from using the command

get-ExecutionPolicy

3. Run the command

set-ExecutionPolicy RemoteSigned

4. Execute the command again and display remotesignated, indicating that the terminal command can be used

get-ExecutionPolicy

Reference articleWish you a good blogThe results of the test were effective.