4
submitted 10 months ago by [email protected] to c/[email protected]

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
[-] [email protected] 2 points 10 months ago

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?

[-] [email protected] 1 points 10 months ago

[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.

[-] [email protected] 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!

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

VS Code

766 readers
1 users here now

founded 1 year ago
MODERATORS