this post was submitted on 06 Nov 2023
4 points (100.0% liked)

VS Code

807 readers
1 users here now

founded 1 year ago
MODERATORS
 

Maybe this is just an issue with my inability to format code effectively or maybe I'm just undiagnosed dyslexic (Open Dyslexic really does help me) but I have issues with my functions running together when I'm writing for more than five minutes. Is there an addon for VS Code that would highlight the background of my function bodies with different colors? I know that this is oddly specific, but I think this would really help. If it's language specific, I spend most of my time writing Go.

you are viewing a single comment's thread
view the rest of the comments
[–] Lodra 2 points 1 year ago (2 children)

I googled quickly and unfortunately, didn’t find anything. But I did stumble on this page: https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide

Looks like it’s very possible to do this type of coloring. But you may have to dig for an extension that does it. Or build one yourself?

[–] MagnoliaMayhem 1 points 1 year ago (1 children)

[sadface]

or build one yourself? I've never built an extension for VS Code. May be worthwhile, if it isn't too difficult. For now, I'm just using big comments to deliminate my functions. Encourages good comment habits as a side-effect, so I'm not too upset.

[–] Lodra 1 points 1 year ago

That's fair. I do think it's worth spending some time searching for the right theme. Pretty good chance that it someone has done it!