Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code selection bug in Visual Studio Color Theme Designer

So, long story short, I am trying to make a decent theme that would match my workmood. I am doing this through "Microsoft Visual Studio Color Theme Designer" in both ways (through GUI menu && by adjusting the .vstheme markdown code itself).

The problem is that whenever I select a string, or any code block, code selection occurs as if it were "under the code" rather than "above the code layer". Below you can see a couple of examples of how it should be and what happens. enter image description here

I'd like to point out! I made sure that in the theme code, the 'background' parameter of each object is set to "00000000", which should leave the objects with only Foreground color. enter image description here

When I select any block of code, I expect to see the selection above all the layers.

Like that: enter image description here

P.S. Also, just noticed that in the filetypes '.vstheme', '.json' everything works great, but somewhy in '.cs' filetype everything breaks down: enter image description here

link for a theme download & debug link for a github to lurk for the code

like image 649
localboy Avatar asked Jun 15 '26 12:06

localboy


1 Answers

Haha! I've solved it! I did a research on how does it work on all other well-known themes, so I found few GitHub .vstheme projects and compared the code. All working themes have their object's background color set to "CT_INVALID" type.

Solution:

  • Go to your .vstheme project and press 'View Code (F7)' enter image description here

  • Go to desired objects, change background's type of "CT_RAW" type to "CT_INVALID" enter image description here

Result:

  • Done! enter image description here
like image 139
localboy Avatar answered Jun 20 '26 13:06

localboy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!