PowerTip: Revert PowerShell ISE Token Values

Doctor Scripto

Dr Scripto

Summary: Learn how to revert Windows PowerShell ISE token values to default values.

Hey, Scripting Guy! Question I have been playing with token colors in the Windows PowerShell ISE and things are confused.
           How can I use Windows PowerShell to change back to default values.?

Hey, Scripting Guy! Answer Use the RestoreDefaultTokenColors method from the Options object:

$psISE.Options.RestoreDefaultTokenColors()

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment