How to change the color of #region tokens in PowerShell ISE

I like to change the default color scheme for PowerShell ISE, in particular, to make the script panel “flipped”, that is, light text on a dark background. Comments painted by PaleGreen:

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

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

I also like to use comments #region ... #endregionso that I can collapse pieces of code.

When they are not reset, comments #region, and #endregionare shown in green, as well as any other comment, but as soon as I befalls them, they turn black, making them almost invisible against the dark background. Other sections (functions, etc.) Do not have a random color when they are reset.

Does anyone know if the color of collapsed #regionand #endregioncomments can be set ?

+4
source share
1 answer

Just like the OP states in the comments, this is apparently a bug that has not yet been resolved. I was going to do it myself, but there is already a report in UserVoice !

Currently, it seems that the only way to get this fix is ​​to give this report more traction. So, like me, if you make your way here, vote for the proposed UserVoice entry.

This is currently a survey that means that

We have seen this, and we are considering it. Please support if this is important to you.

Therefore, I would not waste time.

+1
source

Source: https://habr.com/ru/post/1625541/


All Articles