My original code:
ListView myListView = (ListView) view.findViewById(R.id.myListView);
Code after format (annoying!):
ListView myListView = (ListView) view
.findViewById(R.id.myListView);
What setting do I adjust to prevent eclipse’s format from making this particular change? I’m looking in the formatter settings, but haven’t been able to find it yet as I’m not quite sure how I would describe this change…
One way to avoid the line wrapping is to increase the value of field “Maximum line width” on the “Line Wrapping” tab of
Preferences > Java > Code Style > Formatter > Edit...