guness
guness

Reputation: 6656

Eclipse anonymous inner type template

When I enter an inner type using fast complete feature of eclipse, it uses some template to generate it.

What I get is seen at left side, what I want is shown at right side of picture. Problem Description Picture

What I want is to remove empty line and auto-generated method stub thing, how can I manage this?

Upvotes: 4

Views: 280

Answers (1)

Maroun
Maroun

Reputation: 96018

  • Removing TODO: WindowPreferencesJavaCode StyleCode Templates.

    (Remove // ${todo} Auto-generated method stub from Method body inside Code tree).

  • Removing empty lines: WindowPreferencesJavaFormatterEditBlank LinesBefore First Declaration = 0.

You'll see many options there and you can set it as you wish.

Upvotes: 1

Related Questions