How to change '.' emmet to expand as className instead of class when writing javascript?

Viewed 521

like whenever I write div.app emmet expands it as <div class="app"></div> and I want this to stay true when extension of the file I'm writing is .HTML but in js, I want it to expand <div className="app"></div> to make it valid

1 Answers

Go to settings on VS Code, search for "includeLanguages". Add an object as {"javascript": "javascriptreact"} emmet will expand your code as <div **className**="hello".../> instead of <div **class**="hello".../>

Related