7

Does anyone know if Netbeans 8.1 has support to es6 javascript syntax and how could I enable it?

Natanael
  • 1,326
  • 5
  • 17
  • 34
  • Did you ever figure this out? I want to use es6 syntax but the editor doesn't recognize it.. – Clox Jun 20 '21 at 23:09

2 Answers2

4

No, it is in 8.2, NetBeans 8.2 Release Candidate is available at https://netbeans.org/downloads/8.2/rc/

ladar
  • 5,858
  • 3
  • 26
  • 38
1

go to tools -> options -> Miscellaneous choose the 'files' tab

If you're missing the 'es6' file extension, then add it manually using the new button. Then in the 'Associated File Type (MIME)' choose the same thing you have for js.

That worked for me.

Jay M
  • 979
  • 1
  • 12
  • 23
  • Hello, did this help for ES6 syntax highlighting and outline, etc.? Currently IDE shows some warnings and even errors, and does not support ES6 syntax correctly. – Vlado Nov 27 '20 at 13:47
  • @Vlado did you fix it?? I am using netbeans 12 now and like to follow some ES6 Tutorials. => – alex Mar 10 '21 at 13:56