Eclipse Anonymous Internal Template Template

When I introduce an internal type using the high-speed eclipse function, it uses some template to create it.

What I get is visible on the left side, what I want is shown on the right side of the image. Problem Description Picture

What I want is to delete an empty line and an automatically generated thing, how can I do this?

+4
source share
1 answer
  • TODO removal: Window → Settings → Java → Code Style → Code Templates.

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

  • Removing empty lines: Window → Settings → Java → Formatter → Edit → Empty lines → Before the first declaration = 0.

Here you will see many options, and you can install it as you wish.

+1
source

All Articles