how can i change language mode in visual studio code depending on project i have opened? For example in one project i want to set language mode to standard javascript file for .js files. In another project i want to set language mode to react for .js files.
how can i change language mode in visual studio code depending on project i have opened? For example in one project i want to set language mode to standard javascript file for .js files. In another project i want to set language mode to react for .js files.
Share Improve this question asked Apr 19, 2018 at 20:00 ottootto 2,0638 gold badges42 silver badges69 bronze badges1 Answer
Reset to default 11In each project, open the workspace settings
(using the mand Preferences: Open Workspace Settings
) and enter settings like:
"files.associations": {
"*.js": "javascript"
},
or
"files.associations": {
"*.js": "javascriptreact"
},
respectively.