tags:

views:

24

answers:

1

hi,

how is it done? cant find the option? why is it anyways, that so many people format their code that way? i really dont like it...

int
foo(int);  //dont like

int foo(int); //like
A: 

By default, Eclipse shouldn't be reformatting your code unless you have it do so through the Format command.

However, if you're working with other people's codes and want to format it to your liking it is possible to have Eclipse apply formatting.

You can adjust how this works by locating the Code Style section under the language you are using under the Preferences menu.

apiri
i know that, im looking for this very option in this dialog.
Pankratz
Are you sure the way you like it isn't the default? Applying the Format command from `Source > Format` with the Eclipse default profile converts it from your undesired format to your desired format.
apiri