简体   繁体   中英

Javascript validation in Eclipse IDE EE Mars

Maybe is a stupid question but I'm using Eclipse Java EE IDE for Web Developers Mars and I would like to use JavaScript Development Tools for help me with Javascript code (now I have to deploy to test my javascript code). I'm using Spring, Maven, Hibernate, Thymeleaf and Bootstrap. I thought that in IDE for Web Developers it was included and if I go in Installation Details I see it:

日食

I read javascript for eclipse and follow all the steps except the installation but I can't see if in my javascript there are error. Is it possible to have a validation for syntax and proposals? Now it seems to use Notepad++ for my code in Eclipse environment

您需要创建静态Web项目才能获得智能感知和Javascript帮助

Disclaimer, I'm the author of tern.java

The JSDT validator is very old and it cannot support ES5/ES6 syntax, so I suggest you that you install tern.java .

tern.java is based on JSDT and extend it to support completion, validation for many JavaScript frameworks (Angular, jQuery, node, requirejs, etc). tern.java supports too ECMAScript6 .

tern.java provides several linter like ESLint, JSHint which are able to validate ES5, ES6 syntax and more.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM