Closed Reedbeta closed 4 years ago
That sounds like a bug, because this should already work in HLSL Tools, in both VS and VSCode. Are you using VS? Does it not match braces at all?
I'm using VS. It matches braces in C++, but I don't see any matching brace highlighting when I put the cursor next to a brace in HLSL at all.
I notice the default brace highlight colour is a very light grey, but still, I'm definitely getting brace highlighting for parens, brackets, and braces. Which version of VS are you using? Is it still an issue?
You're right! I had to look really close to see it, the colors are so similar that it's almost impossible to tell, but the highlighting is there.
It's interesting that the highlight color is different for HLSL than for C++, though. I haven't made any changes to the colors, just using the default dark theme in VS (2019, now, though I saw this on 2017 first). Does the extension have any influence over those colors? Is it possible to change the default to match those for C++/C#?
There was a bug in how I was doing brace highlighting, which meant the highlight colour couldn't be customised. I've fixed that now, so the "Brace Matching" colour will be applied to HLSL:
Awesome, thanks!
It would be nice for HLSL Tools to highlight matching parens, brackets, and braces when the cursor is placed on one of the pair, similar to VS and other editors.