Color Week: Using Clear Names for PowerShell ISE Colors

by Sep 13, 2016

This week we are looking at how you can change coloring both in the PowerShell console and PowerShell ISE so you can fine tune your PowerShell environment.

In the previous tip we changed the PowerShell ISE console foreground color to arbitrary self-defined RGB colors. You can also pick from predefined colors:

PS> $psise.Options.ConsolePaneForegroundColor = [System.Windows.Media.Colors]::Azure

PS> $psise.Options.ConsolePaneForegroundColor = [System.Windows.Media.Colors]::White

When you type these lines into the PowerShell ISE console pane, once you enter the two colons, IntelliSense opens a list with all the predefined color names. This is useful to find out the names that exist. Once you know a name, you could also write like this:

PS C:\> $psise.Options.ConsolePaneForegroundColor = 'Azure'

PS C:\> $psise.Options.ConsolePaneForegroundColor = 'DarkGray'

PS C:\> $psise.Options.ConsolePaneForegroundColor = 'White'

Twitter This Tip! ReTweet this Tip!