开发者

grails development: eclipse vs. intellij idea

I downloaded sts and installed the grails/groovy plugins which is fine, but I can not use th开发者_开发问答e JavaScript functionality like jumping through classes and functions in the JavaScript editor.

When I click command and on the functions name, I get a dialog saying "you have to make this a JavaScript project etc." :( :(

intellij is much better at this I think, but it takes all my cpu usage which is really sad :( so I need to switch to eclipse...

My question is: Why can't I use the JavaScript editor plugin from eclipse when my project is a "grails project"?


Eclipse's JavaScript editor is part of the Eclipse Web Tools Project (WTP). Thus, it's shipped with SpringSource Tools Suite (STS).

In new STS Grails projects as created by the Grails project creation wizard, however, the JavaScript project facet is not enabled by default.

To enable it,

  • right-click on the project root in the Project View,
  • select Properties,
  • in the Properties dialog, select Project Facets,
  • click Convert to faceted form...,
  • mark the JavaScript checkbox,
  • and click OK.

After that,

  • there will be a new top-level item JavaScript Resources (where you can browse the sources of ECMA and third-party JavaScript files),
  • and there'll be code inspection and completion in HTML <script> tags
  • and JavaScript source files (file extension: .js),
  • including for third-party libraries.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜