How can I make webstorm set es6 as the javascript language default for any new projects imported via github?

I rarely have a project now that uses es5 and since I often import many new projects from github with no .idea settings this would save me some time.

  • You probably need to accept another answer. – Mikhail Batcer Dec 14 '16 at 13:26
  • @MikhailBatcer done – Nikos Dec 14 '16 at 13:28
up vote 32 down vote accepted

To set the default language level for JavaScript, go to File > *DEFAULT Settings* > Languages and Frameworks > JavaScript.

ES6 as default JS level

Go to File | Settings | Languages and Frameworks | JavaScript and here change option JavaScript language version to ECMAScript 6.

Also will be useful JetBrains screencast.

  • 7
    But that changes the ECMAScript Version just for the current project. The question was rather changing it as default. @Nikos, could you change the default ECMAScript version? – Yves Dec 26 '15 at 8:26

You can change global settings on the initial window when all projects are closed.

enter image description here enter image description here enter image description here

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.