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

VS Code

4 readers
2 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.

top 3 comments
sorted by: hot top controversial new old
[–] Lodra@programming.dev 2 points 10 months ago (1 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@programming.dev 1 points 10 months 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@programming.dev 1 points 10 months 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!