Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-dev] Java formatter question

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

Back to the top