如何在 PowerShell ISE 中更改#region 标记的颜色

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

我喜欢更改 PowerShell ISE 的默认配色方案,特别是制作脚本窗格 "inverted",即深色背景上的浅色文本。评论颜色为淡绿色:

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

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

我也喜欢使用 #region ... #endregion 注释来折叠代码块。

当它们没有折叠时,#region#endregion 评论像其他任何评论一样显示为绿色,但是一旦我折叠它们,它们就会变成黑色,使它们在深色背景中几乎看不见.其他部分(功能等)在折叠时不会随机变色。

有谁知道 collapsed #region#endregion 评论的颜色可以设置吗?

就像 OP 在评论中指出的那样,这似乎是一个错误,截至目前,仍未得到解决。我本来打算自己做一个,但现在已经有 report on UserVoice!

目前,解决此问题的唯一方法似乎是增加该报告的吸引力。所以像我一样,如果你来到这里,请对提议的 UserVoice post 投票。

目前是一项调查,这意味着

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

所以我不会认为这是浪费时间。