Java formatter question

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Java formatter question

Rigmor Ukuhe-2
Hi

Can someone help me out with two problems i have with formatter.

1. How to configure formatter so that it dous not mess up multiline comments:

/*
* Something:
* 1) Something
* 2) Something2
*/

Currently format out put is something like:

/*
* Something:1) Something 2) Something2
*/

How to avoid this?

2. How to keep newlines in string concat operations

String sql = "Insert Into Blah (" +
" aa, " +
" bb, " +
" cc ) " +
" Values (" +
"?," +
"?," +
"?)";

Currently i get output like String sql = "Insert Into Blah (" + " aa, " + " bb, " + " cc ) " + " Values (" + "?," + "?," + "?)";

What i want is it that it keeps newlines but uses indentation and other rules i have set.


Hope someone can help.


Rigmor

_______________________________________________
jdt-dev mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jdt-dev