最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - How do I turn off javascript support on a project in eclipse? - Stack Overflow

programmeradmin3浏览0评论

So, here's the problem.

I use eclipse for a PHP project, in which we use smarty templates to format html. One day I was making a small javascript and tried the usual ctrl-space for code completion. I got the popup asking me if I wanted to add javascript support to the project and I thought "well I can at least try it and see how it works". This turned out to be a really bad idea, since editing html/smarty templates is now extremely slow.

When I check the project settings I have a Javascript section where I've tried most things but I it seems I can't disable it all together.

So, any ideas of how I can disable javascript support after I've mistakenly activated it?

So, here's the problem.

I use eclipse for a PHP project, in which we use smarty templates to format html. One day I was making a small javascript and tried the usual ctrl-space for code completion. I got the popup asking me if I wanted to add javascript support to the project and I thought "well I can at least try it and see how it works". This turned out to be a really bad idea, since editing html/smarty templates is now extremely slow.

When I check the project settings I have a Javascript section where I've tried most things but I it seems I can't disable it all together.

So, any ideas of how I can disable javascript support after I've mistakenly activated it?

Share Improve this question asked Mar 23, 2011 at 11:47 DytutDytut 3171 gold badge4 silver badges9 bronze badges
Add a comment  | 

4 Answers 4

Reset to default 14

My project is setup as Java under Eclipse Galileo. I managed to remove support from it by going to the .project file and deleting the JavaScript Nature (org.eclipse.wst.jsdt.core.jsNature).

One problem I've experienced lately is the JavaScript Validation builder fails with a NullPointerException (on Helios). If you right-click your project, select 'Properties', then 'Builders' and un-check JavaScript Validation it turns off those errors which continued to pop-up on me.

As for JavaScript support itself, check for other 'Builders' in the same area and un-check as needed.

In eclipse click: window->preferences->Javascript->Validator->Errors/Warnings and uncheck "Enable JavaScript semantic validation"

In my case I also had to remove these files from project dir (in addition to removing org.eclipse.wst.jsdt.core.jsNature from .project file) to disable JavaScript support: .settings/.jsdtscope .settings/org.eclipse.wst.jsdt.ui.superType.container .settings/org.eclipse.wst.jsdt.ui.superType.name

发布评论

评论列表(0)

  1. 暂无评论