add following in vscode > settings.json
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell",
"args": ["-ExecutionPolicy", "Bypass"]
}
},
"terminal.integrated.defaultProfile.windows": "PowerShell"
// Open VSCode settings.json
// At the end of the final entry, add a comma, then add this line:
"terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "Bypass"]
"terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "Bypass"]