Groovy 代码编辑器建议
我正在努力学习 Grails。 我正在使用 SpringSource 工具套件。 我希望在 IDE 中找到代码完成、语法突出显示以及更多类似功能。 没有那样的事! 有什么建议吗?
I'm trying to learn Grails.
I'm using SpringSource toole suite.
I expected to find code-completion, syntax highlighting and more things like that in the IDE.
Nothing like that!
Any advice?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
您启用了 Groovy 和 Grails 支持吗?默认情况下它不存在,但配置起来很简单。请参阅http://grails.org/STS+Integration/
Did you enable the Groovy and Grails support? It's not there by default but it's trivial to configure. See http://grails.org/STS+Integration/
JetBrains 的 IntelliJ 拥有所有这些以及更多。它不是免费的,但价格是值得的。
IntelliJ from JetBrains has all that and more. It's not free, but the price is worth it.
如果您使用的是 Mac,则可以使用 TextMate 并安装 Groovy/Grails 捆绑包。您将获得代码片段,这是某种完成。
如果您使用的是 Windows/Linux/Mac,您可以使用 Redcar,它是为 Ruby 制作的,但具有Groovy/Grails 支持。它还具有代码片段。
我强烈建议学习者不要在动态语言中使用对象检查和动态代码完成,以避免 IDE 成瘾和依赖。
我个人更喜欢不显眼的代码编辑器,它让我们可以直接处理文本代码而不混乱,让我们能够尽早犯错误并更好地理解语言(和框架)。我什至在生产工作中也使用它。
If you're on a Mac, you can use TextMate and install Groovy/Grails bundle. You will have code snippets, that is some kind of completion.
If you're on Windows/Linux/Mac you can use Redcar, that was made for(and in) Ruby but has Groovy/Grails support. It also have code snippets.
I strongly recommend for learning that you don't use object inspection and dynamical code completion in a dynamic language in order to avoid IDE addiction and dependency.
I personally prefer unobtrusive code editor, that let we deal with textcode directly without clutter, allowing us to make mistakes early and understand better the language (and the framework). I use it even in production work.
我第二个IntelliJ,但是免费版本就足够了,它有 groovy 支持,尽管 Grails 支持仅在付费版本中提供。
I second IntelliJ, but the free edition could suffice, it has groovy support, though Grails support is in the paid version only.
我正在使用 IntelliJ 社区版。据我所知,免费编辑器之间的区别并不大。表面上,我使用 IntelliJ Community 只是因为它的界面简单。它还支持 groovy/java、& 的语法突出显示/代码完成。一些方便的功能,如搜索/转到...
简而言之,如果您想要全面支持,IntelliJ Premium 很棒,但您必须付费。为了自由休息,您甚至可以选择任何您想要的编辑器。
I'm using IntelliJ Community Edition. As I see, the difference between free editors is not much. In face, I use IntelliJ Community just because of its simple interface. It also supports syntax highlight/code completion for groovy/java, & somehandy functions like search/go to...
In short, if you want full support, the IntelliJ Premium is great, but you must pay for it. For the free rest, you can even choose any editors you want.
我使用 IntelliJ Ultimate,这是最好的方法,但如果您想要一个免费的解决方案,那么 Netbean 6.5 及更高版本本身支持 groovy/grails 代码突出显示/代码完成,并且是免费的。
i use IntelliJ Ultimate and it's the best way to go but if you want a free solution then Netbean 6.5 an up supports groovy/grails code highlight / Code completion natively and is free.