How to make different comments different colors in Visual Studio Code?

Mar 24, 2021 at 6:22pm
I'm trying to define what my code is doing as I go along so I don't get confused when I come back to it later - but my project has comments describing what each function does, so it's all too much of the same color.

I've looked online but I don't really see anything that can change the color of different comment types (/* */ or //). Is this possible? Thank you so much for the help.
Mar 24, 2021 at 7:59pm
It's not possible.

If it's "too much of the same color" then you're commenting too much. This is bad, because (in real work with a real development cycle) there's no way you'll be able to keep them updated as the code evolves.
Mar 25, 2021 at 12:06pm
you can change xml comment to another color and use /// for those.
because they count as // it works in c++ and is actually often used for document generation programs.

you can also use notepad++ to edit the code instead and define other comments. they would still have to be legal c++ comments, but eg you could define /*. or /*% or whatever to color it up.
Last edited on Mar 25, 2021 at 12:08pm
Topic archived. No new replies allowed.