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 Visual Studio), I can use the value of $host.name
to switch behavior or include specific code in the "host specific" powershell profile (e.g. Microsoft.PowerShell_profile.ps1
).
Powershell inside of VSCode appears identical to Powershell running in a regular console so most of these options aren't available. Is there anyway to workaround this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…