Skip to content

Instantly share code, notes, and snippets.

@rmcfadzean
Created January 29, 2019 19:39
Show Gist options
  • Save rmcfadzean/4015a5f9af14a5b743f88fb3312ae368 to your computer and use it in GitHub Desktop.
Save rmcfadzean/4015a5f9af14a5b743f88fb3312ae368 to your computer and use it in GitHub Desktop.

Useful snippet for setting all language definition of JS files under the src directory to be javascriptreact in VS Code.

Some extensions you may only want to run when the language is javascriptreact.

I place it in ${workspace}/.vscode/settings.json for each project.

{
"files.associations": {
"**/src/**/*.js": "javascriptreact"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment