Eclipse Groovy Formatter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Eclipse Groovy Formatter

Tx. T
is there any setting in Eclipse to format / indent this groovy code like how the java code is formatted / indented ?

cli = new CliBuilder(width : 108,
usage : "${name} [options] ...",
header: "${name} description\n",
footer: "\nexample: ${name} ...")

to: 

cli = new CliBuilder(width : 108,
                     usage : "${name} [options] ...",
                     header: "${name} description\n",
                     footer: "\nexample: ${name} ...")
Loading...