views:

21

answers:

1

I am havinging a problem with eclipses formatter that i cannot seem to figure out.

If i have a line of code with comments that is over 80 characters, like:

Something something = new Something(somethingElse) // some comments here about the code.

then the first time i run the formatter, it will set it up correctly, like:

Something something = new Something(somethingElse) // some comments here
                                                   // about the code.

However, if i then run the formatter again later, it will change it to:

Something something = new Something(somethingElse) // some comments here
// about the code.

I feel like there should be something obvious here that i am missing, but i have looked through all the formatter settings that i could find and have yet to find a way to prevent this behaivor. Does anyone have any insight to this?

Thanks