在eclipse luna中启用javascript验证 [英] Enable javascript validation in eclipse luna

查看:128
本文介绍了在eclipse luna中启用javascript验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前段时间我问了这个问题:
以获取更多详细信息。


Sometime ago I asked this question: Enable javascript validation for eclipse

I wanted eclipse to highlight javascript errors/warnings.. The problem as you can see in the answer was that the project was not configured as Javascript Nature. Now I migrated to Eclipse Luna and have the same problem.. But now I cannot find anywhere the option to configure the project. Is there any other way?

解决方案

Partial response (coz Need ans asked in comment): you can convert your project to a JavaScript project by adding the following nature to the .project file contained at the root of your project:

</projectDescription>
    //...  other project settings
    <natures>
        <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
    </natures>
</projectDescription>

If you are not able to find .project see Showing or hiding files in the Project Explorer view for more details.

这篇关于在eclipse luna中启用javascript验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆