Reputation: 533
I use Eclipse IDE to format my code, i.e ctrl+shift+f
Here is what it's doing:
int[] array =
{ 1, 2, 7, 1 };
Here is what I wish it did:
int[] array = { 1, 2, 7, 1 };
How can I stop the Eclipse formatter from putting a new line after equals when initalizing array ?
Upvotes: 2
Views: 182
Reputation: 21
Hope this http://www.wikihow.com/Change-the-Default-Format-Settings-in-Eclipse can help you, take a look
Try steps below in your eclipse:
Upvotes: 2