开发者

Grails Auto-format Line wrap

开发者 https://www.devze.com 2023-01-30 04:45 出处:网络
I was trying to using Crtl+shift+F to format a groovy class in springsource suite 开发者_StackOverflowtool. However, it doesn\'t split lines that are very long (more than 80 characters) as it does wit

I was trying to using Crtl+shift+F to format a groovy class in springsource suite 开发者_StackOverflowtool. 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.


IntelliJ does a very nice job of formatting Groovy code. The free version of IntelliJ includes Groovy support, but not Grails support (last time I checked)


What version of STS are you using? We have recently fixed a few issues regarding formatting of Groovy code in the latest release of Groovy-Eclipse (2.1.1). The update site is here:

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

This should solve your problem, but if it doesn't, then I'd suggest raising a bug on the issue tracker:

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

0

精彩评论

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

关注公众号