【发布时间】:2020-01-07 07:59:33
【问题描述】:
如果 Powershell 在 VS Code 集成终端中打开,我想修改 Windows 中的标准 PowerShell 配置文件(当您在 VS Code 中编辑例如 python 脚本,而不是 PS 脚本时,无论如何都会打开 ISE 配置文件)。
集成的 PowerShell 是否设置了一些环境变量?或者是否有某种方法可以使用特定配置文件而不是默认配置打开 Powershell?
谢谢
【问题讨论】:
-
顺便说一句:您也可以重新配置文件关联以在 Visual Studio 代码中打开 PowerShell 脚本 (
*.ps1),我建议这样做,因为 ISE is obsolescent并且已经并且永远不会支持 PowerShell Core (v6+)。
标签: powershell visual-studio-code