How Can I Change the Region Color in PowerShell ISE?

0
8
Asked By TechnoWhiz42 On

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?

2 Answers

Answered By CuriousDev93 On

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!

Answered By CodingNinja77 On

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!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.