Reputation: 6656
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.
What I want is to remove empty line and auto-generated method stub thing, how can I manage this?
Upvotes: 4
Views: 280
Reputation: 96018
Removing TODO: Window → Preferences → Java → Code Style → Code Templates.
(Remove // ${todo} Auto-generated method stub
from Method body inside Code tree).
Removing empty lines: Window → Preferences → Java → Formatter → Edit → Blank Lines → Before First Declaration = 0.
You'll see many options there and you can set it as you wish.
Upvotes: 1