2

I was trying to using Crtl+shift+F to format a groovy class in springsource suite tool. However, it doesn't split lines that are very long (more than 80 characters) as it does with java files.

I would appreciate if anybody could recommend me a tool for perform wrapping of lines in groovy files and generally grails projects.

Thanks in advance.

4

2 回答 2

1

您使用的是什么版本的 STS?我们最近在最新版本的 Groovy-Eclipse (2.1.1) 中修复了一些关于 Groovy 代码格式的问题。更新站点在这里:

http://dist.springsource.org/release/GRECLIPSE/e3.6/

这应该可以解决您的问题,但如果没有,那么我建议在问题跟踪器上提出一个错误:

http://jira.codehaus.org/browse/GRECLIPSE

于 2010-12-31T18:33:59.987 回答
1

IntelliJ 在格式化 Groovy 代码方面做得非常好。IntelliJ 的免费版本包括 Groovy 支持,但不包括 Grails 支持(上次我检查过)

于 2010-12-13T08:49:15.460 回答