Don't generate TODO eclipse when i create new content

569 Views Asked by At

I want Eclipse not to automatically generate some //TODO stuffs like this for example :

@Override
public String getPassword() {
    // TODO Auto-generated method stub
    return null;
}

I want to desactivate this feature in Eclipse...

Can somebody know how to deal with this ?

2

There are 2 best solutions below

1
On BEST ANSWER

you can remove by exploring below path in your eclipse.

Window -> Preferences -> Java -> Code Style -> Code Templates.

In the code tree you have the templates. Select for example Code → Method Body and press “Edit” to edit this template and to remove the todo comment.

0
On

These are set by the Code Templates in the Preferences - Java > Code Style > Code Templates.

Look a the 'Method body', 'Constructor body', ... templates in the 'Code' section