visual-studio - 如何使用 PowerShell 更改 VS 包管理器控制台的前景色?

标签 visual-studio powershell visual-studio-2013

使用 PowerShell,如何更改 Visual Studio 包管理器控制台中的前景字体颜色?

发生错误时,前景色变成白色,背景变成红色,看来可以修改颜色了。

我想修改颜色以突出显示返回结果的某个状态,因此我需要能够使用 PowerShell 以编程方式更改颜色。

更改颜色并使用后,我想将颜色恢复为默认值。 (很像现有的错误格式工作)

最佳答案

某些颜色是可定制的,但您不能使用标准 $host特性。要自定义 VS powershell 文本颜色,您可以 工具->选项->环境->字体和颜色并修改 Plain Text选项 Item foreground .请参阅下面的示例...
但是,似乎没有任何选项可以专门控制错误/警告/调试/详细/进度颜色 as is typically supported with other powershell consoles .
在 Visual Studio 中修改 Powershell 管理控制台
enter image description here

关于visual-studio - 如何使用 PowerShell 更改 VS 包管理器控制台的前景色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27081066/

相关文章:

c# - 从 Resharper 撤消 "Folder ' <folderName >' do not introduce namespace"

android - 在空白 Xamarin.Forms 应用程序中生成错误

c# - Visual Studio 中的哪些功能或任务需要管理权限?

visual-studio - Visual Studio 2013中的错误: “No exports were found that match the constraint”

c# - 在 C# 中访问非公共(public)基础属性

c# - 用于 C# 开发的 Visual Studio 插件

powershell - 找不到类型[cultureinfo]

windows - Powershell 中的流水线字符串

powershell - 我可以在 Windows Powershell ISE 中使用 "break when an exception is thrown"吗?

opencv - 为两个Visual Studio版本安装两个OpenCv版本?