How Can I Change the Region Color in PowerShell ISE?
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
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
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.
Reply to this answer
Add your answer
Answers are reviewed before publication.
TechnoWhiz42: Yeah, that makes sense! I just wish there were easier ways to customize it. Thanks for the clarification!