How to disable the automatic asterisk (inserting stars) in Eclipse when adding a multi-line comment?

In Eclipse 4.2 and later, the solution is: Window -> Preferences -> Java -> Code Style -> Formatter ->

$profileName -> Edit... () -> comments ->* un-check [ ] Enable block comment formatting.

Note that the author asked for block comments (/*) and not for Javadoc comments (/**).

To supress leading * for Javadoc comments un-check [ ] Enable Javadoc comment formatting


(*) If $profileName -> Edit... doesn't work, create a new template using "New...".

See image highlighted in yello


It's the standard javadoc format. Formatting options in eclipse are in right click your project->properties->Java Code Style->Formatter->Edit->Comments tab, but I don't see an option to disable this particular behavior.


Go to Tools/Options/Editor/Formatting and select Language = Java, Category = Comments and uncheck Add Leading Star.