Reputation: 81
How do you enable emmet for nextjs ( js file)?
Upvotes: 6
Views: 5658
Reputation: 458
Emmets don't work in JS files. However, you can set it so that VS Code thinks that it's a JSX file and it would give React IntelliSense.
react (javascriptreact)
.If you want all of your JS files to be set as React files, create .vscode/settings.json
and paste this:
{
"files.associations": {
"*.js": "javascriptreact"
}
}
Upvotes: 20