Search code examples
reactjsvisual-studio-code

How to add color to component tags in Visual Studio Code?


I am learning React, and I observe some people made the color of Component tags different from normal HTML tags under JSX format. However I am not really able to find extensions that do this (tried prettier and react snippets etc.). I wonder what enables that behavior?

enter image description here


Solution

  • Turns out it is a built-in Visual Studio Dark+ default dark theme. Color the tag name proposed by Alex also works, just different colors.