Vs Code terminal cannot use command solution


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

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


3. Run the command

set-ExecutionPolicy RemoteSigned

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


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