AndrejaKo
AndrejaKo

Reputation: 1749

How to change Eclipse indentation style for automatically generated code?

Is there any way to change indentation style for automatically generated code in Eclipse? I'd like to change from

class Test {
blah blah
}

to

  class Test 
  {
  blah blah
  }

Upvotes: 9

Views: 16978

Answers (2)

VonC
VonC

Reputation: 1328602

If you do change the format of the brace, all new class will be generated according to that new format:

brace option

Upvotes: 22

Ted Spence
Ted Spence

Reputation: 2678

It's in "Window | Preferences" in the latest eclipse.

Upvotes: 2

Related Questions