Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97400

Custom react code snippets not working in vscode in javascriptreact.json file

$
0
0

I want to add a few custom React.js code snippets in VSCode. I realize there are two files in VSCode for this. javascript.json and javascriptreact.json. javascript.json works just fine but when I move the snippets to javascriptreact.json, VSCode doesn't recognize them.

It'll be great if I could isolate these snippets in javacriptreact.json file because I also write server side JavaScript.

I'm guessing that VSCode doesn't recognize the app as a React app. Is there anyway to fix this?


Viewing all articles
Browse latest Browse all 97400

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>