Home  >  Article  >  Development Tools  >  vscode cannot execute program scripts in the terminal

vscode cannot execute program scripts in the terminal

王林
王林Original
2020-02-11 14:40:285691browse

vscode cannot execute program scripts in the terminal

Cause:

PowerShell execution policy problem.

The solution is as follows:

1. Right-click the VSCode icon and select Run as administrator;

2. Execute get-ExecutionPolicy in the terminal and it will display Restricted, which means The status is prohibited;

3. At this time, execute set-ExecutionPolicy RemoteSigned;

4. At this time, execute get-ExecutionPolicy again, and RemoteSigned is displayed, which means that the status is unlocked and can be run.

Recommended related articles and tutorials: vscode tutorial

The above is the detailed content of vscode cannot execute program scripts in the terminal. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn