Terminal is not opening in VSCode. It gives the error.
VScode cannot be loaded because running scripts is disabled on this systemOpen VSCode.
Go to
File > preferences > settings > extension > edit settings.json
Add following snippet at the start below first curly brace {
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell",
"args": ["-ExecutionPolicy", "Bypass"]
}
},
"terminal.integrated.defaultProfile.windows": "PowerShell",
Now restart VS Code, close the Terminal and open it again.