Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the colour of #region tokens in PowerShell ISE

I like to alter the default colour scheme of the PowerShell ISE, specifically to make the script pane "inverted", i.e. light text on a dark background. Comments are coloured PaleGreen:

[PS]> ($psise.Options.TokenColors) | ?{$_.Key -eq "Comment"} | FT -AutoSize

    Key Value    
    --- -----    
Comment #FF98FB98

I also like to use #region ... #endregion comments to allow me to collapse chunks of code.

When they are not collapsed, the #region and #endregion comments show in green like any other comment does, but once I collapse them they turn black, rendering them almost invisible on the dark background. Other sections (functions, etc.) don't chance colour when then they are collapsed.

Does anyone know if the colour of collapsed #region and #endregion comments can be set?

like image 342
Charlie Joynt Avatar asked Jan 22 '16 16:01

Charlie Joynt


1 Answers

Just like the OP states in comments this appears to be a bug that, as of this moment, has still not been addressed. I was going to make one myself but there is already currently a report on UserVoice!

Currently it seems the only way to get this fixed would be to give that report more traction. So like me, if you make your way here, vote on the proposed UserVoice post.

It is currently a survey which means that

We saw this and we are considering it. Please upvote if it’s important to you.

So I would not consider it a waste of time.

like image 72
Matt Avatar answered Dec 21 '22 11:12

Matt