【发布时间】:2015-06-03 16:59:23
【问题描述】:
有没有办法从 IDE 的命令环境(PS> 提示符)中打开脚本文件($profile 或其他),以便它在 IDE 本身中加载?
# loads the current user/current host profile in Notepad (probably because .PS1 is associated w/ Notepad.exe)
PS > ii $profile
# same for any random script file
PS > ii .\Foo.ps1
【问题讨论】:
-
我将 .ps1 文件的“打开方式”属性更改为 powershell ise。然后“ii $profile”将在 ise 中打开我的个人资料。
标签: powershell powershell-3.0 powershell-ise