How Can I Change the Region Color in PowerShell ISE?

December 7, 2025 2 answers
Asked by TechnoWhiz42
I'm using PowerShell ISE and I'm struggling to change the color of the keyword region. When I go to Tools > Options > Colors and Fonts, I don't see an option to modify the region color which defaults to black. This makes it hard to see against a darker script pane. I've also tried editing the .xml theme and adding `TokenColorsRegion`, but ISE doesn't recognize that. Is there any known hack or workaround to change the color of the region?

Answers

CodingNinja77
Honestly, I feel your pain. I know you can change the region color when itโ€™s expanded to something other than green, but once itโ€™s collapsed, it always shows up black. It's super annoying!
Reply to this answer
CuriousDev93
Don't stress too much about using ISE; I feel like itโ€™s stuck in time compared to VS Code. That said, PowerShell handles its own syntax highlighting through the syntax tree, so `#region` will always be treated like a comment, which makes it green when expanded. Unfortunately, it seems there's not an easy way around the color limitations in ISE for the regions.

TechnoWhiz42: Yeah, that makes sense! I just wish there were easier ways to customize it. Thanks for the clarification!

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions