Enable javascript validation in eclipse luna

前端 未结 3 1055
耶瑟儿~
耶瑟儿~ 2021-01-14 13:46

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

相关标签:
3条回答
  • 2021-01-14 14:05

    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.

    0 讨论(0)
  • 2021-01-14 14:07

    To add JavaScript perspective to your project follow the steps below.

    1. Either right-click on the project and choose "Properties" or go to the top of Eclipse and select "Project Properties" from the menu.
    2. Choose "Project Facets" from the tree on the left.
    3. Click on "Convert to faceted form" link
    4. Check the "JavaScript" check-box and and hit "OK" to close the dialog.

    enter image description here

    0 讨论(0)
  • 2021-01-14 14:22

    Steps to enable/disable validators in your project or workspace:

    • Click Window > Preferences and select Validation in the left pane. The Validation page of the Preferences window lists the validators available in your project and their settings.

    • To enable individual validators, clear the check boxes next to each
      validator that you want to enable. Each validator has a check box to specify whether it is enabled for manual validation or on a build.

    • Click OK.

    Also there is an alternative solution available. Do check this out.

    0 讨论(0)
提交回复
热议问题