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?
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?
Share Improve this question edited May 23, 2017 at 12:13 CommunityBot 11 silver badge asked Jan 7, 2015 at 19:12 Pablo Matias GomezPablo Matias Gomez 6,8238 gold badges40 silver badges74 bronze badges 3- Which package of luna are you using? (Means: Java EE Developers, for Java Developers or etc..) – Sumit Singh Commented Jan 16, 2015 at 11:38
-
Eclipse for Java Developers:
Eclipse IDE for Java Developers Version: Luna Service Release 1a (4.4.1) Build id: 20150109-0600
Does this have something to do with the javascript validation? – Pablo Matias Gomez Commented Jan 16, 2015 at 12:43 - 1 Download "Eclipse IDE for Java EE Developers" and try Configure -> Convert to JavaScript Project... . Tell me if this option is still missing. eclipse/downloads/packages/eclipse-ide-java-ee-developers/… – Sumit Singh Commented Jan 19, 2015 at 6:02
2 Answers
Reset to default 4To add JavaScript perspective to your project follow the steps below.
- Either right-click on the project and choose "Properties" or go to the top of Eclipse and select "Project Properties" from the menu.
- Choose "Project Facets" from the tree on the left.
- Click on "Convert to faceted form" link
- Check the "JavaScript" check-box and and hit "OK" to close the dialog.
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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745226226a4617473.html
评论列表(0条)