visual-studio - 将 PowerShell Core 添加到 Visual Studio 的终端列表

标签 visual-studio powershell-core

在 Visual Studio 中,当我按 Ctrl-Backtick 时,Visual Studio 将打开“开发人员 PowerShell”窗口。如何将 PowerShell Core 添加到可用终端列表并将 PowerShell Core 设置为默认终端?

enter image description here

最佳答案

对于 Visual Studio 2019、PowerShell Core 7...

  1. 点击设置(齿轮)图标。
  2. 点击添加按钮添加新的个人资料。
  3. 名称设置为PowerShell Core
  4. Shell 位置设置为 C:\Program Files\PowerShell\7\pwsh.exe
  5. 清除参数
  6. 应用按钮。
  7. 设置为默认值按钮。

enter image description here

关于visual-studio - 将 PowerShell Core 添加到 Visual Studio 的终端列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68087238/

相关文章:

c# - 在带有 C# 的 Visual Studio 中,如何使 () 在我键入时自动出现,例如 .Focus()?

visual-studio - d :DesignData issue, 使用 Expression Blend 4 添加示例设计数据后,Visual Studio 2010 无法构建

azure - 为什么 Az powershell 在简单的 "show policy definition"命令上返回此错误?

c++ - 生成 C++ 项目中所有类的列表

c++ - 视觉 C++ : creating a dll using libcurl

c# - 上课时不阅读按钮单击时输入的表单

powershell - 本地 New-PSSession 在基于官方 powershell linux 的 docker 图像中失败

powershell - 使用powershell获取证书信息

powershell - 当我关闭 session 或注销计算机时,计划任务是在后台继续运行 Powershell 脚本的唯一方法吗?

powershell - 删除 HTML 中的区域