how to enable emmet in javascript files
Hi,
I have just watched the deep dive into webstorms new features youtube video, and one feature that is shown at https://www.youtube.com/watch?v=L-3kegPlQ_c#t=541 is using emmet in javascript files.
This is really a nice feature, and I wonder if it's possible to enable that in idea 14 somehow?
Bastian
Please sign in to leave a comment.
Hi Bastian,
In order to get emmet inside JS you need to set JS Langauge Level to 'JSX Harmony'.
Attachment(s):
Screenshot 2014-11-17 15.07.30.png
Thanks for your answer.
The language level is already 'JSX Harmony'.. it suggested the switch with the yellow bar like in the video shown. The completion for react classes is also working (like <Card in the example).
The only thing that won't work is the emmet completion.
I downloaded the webstorm trial and there it is working with the same project .. div.test will get <div className="test"></div> .. but in idea it just adds spaces.
Bastian
IDEA will get the feature in the next minor update.
Thanks.