|
Re: Eclipse Formatter [message #1075249 is a reply to message #1073149] |
Mon, 29 July 2013 05:42   |
Eclipse User |
|
|
|
But I do not think there is a problem with the statement interpretation or is there? What I understand is that the semi colon is the one that marks the end of a statement so the 2 versions will be read and interpreted the same way. This is just to make the code neat.
|
|
|
Re: Eclipse Formatter [message #1075458 is a reply to message #1073149] |
Mon, 29 July 2013 13:11  |
Eclipse User |
|
|
|
Eclipse allows you to turn off formatting by placing a special comment, like:
// @formatter:off
...
// @formatter:on
The on/off feature has to be turned on in Eclipse preferences:
Java > Code Style > Formatter.
Click on "Edit" button, go to "Off/On Tags" tab and check "Enable Off/On tags".
You can also change the tags there if required.
So, in your case, enable the on/off feature and place your code that you don't want to be formatted in between the tags:
// @formatter:off
String sql = "select * from table" +
"where table.colonA > 0" +
"and table.colonB < 0 ";
// @formatter:off
|
|
|
Powered by
FUDForum. Page generated in 0.03037 seconds