Eclipse format comments with / * or // at the beginning of the line?

Basically, I want the Eclipse Java formatter to format comments, so /*

either //

is at the beginning of the line before the first tab.

Does anyone know of any settings that allow this? I notice I Ctrl+/do it this way, but using Format overrides it.

+3


source to share


1 answer


I think what you are looking for

  • Never indent from a line in the first column
  • Never defer block comments in the first column


For more information, see Preferences / Java / Code Style / Formatter / Edit ... / Comments (in Eclipse Juno SR1.)

+4


source







All Articles