# Back-Up your Powershell ISE color scheme -
$ISE_Settings =
@()
$ISE_Settings += "`$psISE.Options.ScriptPaneBackgroundColor = '$(($psISE.Options.ScriptPaneBackgroundColor).ToString())'"
$ISE_Settings += "`$psISE.Options.ScriptPaneForegroundColor = '$(($psISE.Options.ScriptPaneForegroundColor).ToString())'"
Write-Host "`$psISE.Options.ScriptPaneBackgroundColor
= '$(($psISE.Options.ScriptPaneBackgroundColor).ToString())'"
Write-Host "`$psISE.Options.ScriptPaneForegroundColor
= '$(($psISE.Options.ScriptPaneForegroundColor).ToString())'"
$psISE.Options.TokenColors |
% {
$ISE_Settings
+= "`$psISE.Options.TokenColors.item('$($_.Key)') = '$($_.Value)'"
Write-Host
"`$psISE.Options.TokenColors.item('$($_.Key)') = '$($_.Value)'"
}
# Run this in your new ISE, to import...
$ISE_Settings | Out-File "C:\Powershell_Stuff\ISE_Settings.ps1"
|
Those Write-Host items are there, just in case the import can be done via copy / pasta.
$psISE.Options.ScriptPaneBackgroundColor = '#FFF5DEB3'
$psISE.Options.ScriptPaneForegroundColor = '#FF000000'
$psISE.Options.TokenColors.item('Attribute') =
'#FF00BFFF'
$psISE.Options.TokenColors.item('Command') = '#FF0000FF'
$psISE.Options.TokenColors.item('CommandArgument') =
'#FF8A2BE2'
$psISE.Options.TokenColors.item('CommandParameter') =
'#FF000080'
$psISE.Options.TokenColors.item('Comment') = '#FF006400'
$psISE.Options.TokenColors.item('GroupEnd') =
'#FF000000'
$psISE.Options.TokenColors.item('GroupStart') =
'#FF000000'
$psISE.Options.TokenColors.item('Keyword') = '#FF00008B'
$psISE.Options.TokenColors.item('LineContinuation') =
'#FF000000'
$psISE.Options.TokenColors.item('LoopLabel') =
'#FF00008B'
$psISE.Options.TokenColors.item('Member') = '#FF000000'
$psISE.Options.TokenColors.item('NewLine') = '#FF000000'
$psISE.Options.TokenColors.item('Number') = '#FF800080'
$psISE.Options.TokenColors.item('Operator') =
'#FF696969'
$psISE.Options.TokenColors.item('Position') =
'#FF000000'
$psISE.Options.TokenColors.item('StatementSeparator') =
'#FF000000'
$psISE.Options.TokenColors.item('String') = '#FF8B0000'
$psISE.Options.TokenColors.item('Type') = '#FF006161'
$psISE.Options.TokenColors.item('Unknown') = '#FF000000'
$psISE.Options.TokenColors.item('Variable') =
'#FFFF0000'
|