Syntax coloring not working.
I am trying to use VS Code for a simple react native project. I installed the react native extension, and it seemed to load correctly, and it also recognizes the js files as react jsx. However, the syntax color is not working correctly. For instance, in the attached screenshot, View and Text are white.
Let me know what other information I can provide.

If you look in the bottom right of your window, it says "JavaScript". If you click on that, you should be able to change it to "JavaScript React" which supports the highlighting for JSX constructs.
Unfortunately you will need to modify this setting manually for all files which end in .js rather than .jsx because the default colourising is based on file extension.
If you would like all .js files globally to be considered as .jsx and support JSX colorization, you can install the js-is-jsx extension.
Hmm, it still doesn't work for me. Attached a screenshot with the language mode changed to JavaScript React. I must be missing something?

What version of VS Code are you running?
0.10.9
@awclives Could you please send us a screenshot of the contents of the folders .vscode\typings\react and .vscode\typings\react-native of you workspace? So we can check if the extension copied the correct files to those locations.
I don't have a typings directory.

@awclives Sorry about the misunderstanding. I meant the .vscode folder inside your react-native project next to the android, App, ios, and node_modules folders. Can you please show us that one?
Hope this does it.

It appears that the other jsx extension you have installed overwrites the colorization provided by VS Code. Try this:
- Uninstall the jsx extension by TwentyChung
- Change your theme to Monokai
- Restart VS Code
View and Text are still white.
i also uninstalled and reinstalled the react native extension.

Did you switch the language to JavaScript React?
Edit: VS Code 0.10.10 was just released and has improved(or at least more consistent) JSX colorization.
working fine now. thank you.
Hi, I am also getting the same problem I am sharing my screen In that screen mongoose word should be blue color but is showing as white. I dont understand why it is showing like that?
Hi @prudhviraju255, syntax highlighting as well as code hinting is not a part of React Native Tools extension anymore. I'd suggest you to file your question to vscode tracker.
Is this called syntax coloring? I thought it was code colouring
guys i found a solution to fix this.
Open your VS code and press the settings icon at the bottom left. Then come to the color theme section and choose the dark+ theme. at least my problem was solved this way, maybe you can solve it with this way too. Have a good day everyone!
@reelkaeshi is right. I had the same issue, I had my colour theme set as "Dark" but it needs to be "Dark+", then you'll get all of the correct highlighting. Thanks!
guys i found a solution to fix this.
Open your VS code and press the settings icon at the bottom left. Then come to the color theme section and choose the dark+ theme. at least my problem was solved this way, maybe you can solve it with this way too. Have a good day everyone!
Thanks it worked