When using your favorite theme, Visual Studio Code doesn't always display syntax highlight colors as expected. This extension tries to mimic Sublime Text's babel-sublime package as much as possible to address poor coloring.
- Install Sublime Babel via
ext install sublime-babel-vscodein Command Palette
- When opening a
.jsxfile, ensure the language mode is set to
Suggested Color Themes
For best results, please consider using these optimized themes. Other ported themes will work too, but may not necessarily handle the differences between Sublime and VS Code properly.
Note: These screenshots and case scenarios are old, but the premise is still valid. Other grammars do not fully tokenize like how Sublime does it.
Please see here.