PowerTip: Change PowerShell ISE Foreground Color

Doctor Scripto

Summary: Programatically change the foreground color in the Windows PowerShell ISE.

Hey, Scripting Guy! Question How can I change the foreground color in the Windows PowerShell ISE?

Hey, Scripting Guy! Answer Use $Host.UI.RawUI.ForegroundColor and assign a new color. For example, to change it to cyan, use:

$Host.UI.RawUI.ForegroundColor = ‘cyan’

0 comments

Discussion is closed.

Feedback usabilla icon