I would like to include a few Powershell customizations that only occur when running inside of VSCode.
When inside of ISE or Package Management Console (inside Vis
VSCode sets the TERM_PROGRAM environment variable to vscode in its integrated terminal, so you can use the following test, which works whether or not the PowerShell extension is installed:
TERM_PROGRAM
vscode
$runningInVsCode = $env:TERM_PROGRAM -eq 'vscode'