简体   繁体   中英

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

Basically, I want the Eclipse Java formatter to format comments so the /* or // is at the beginning of the line, before the first tab.

Does anyone know of any setting that allows this? I notice that Ctrl+/ does do it this way, but using Format undoes it.

I think you're looking for

  • Never indent line comments on first column
  • Never indent block comments on first column

under Preferences / Java / Code Style / Formatter / Edit... / Comments (in Eclipse Juno SR1.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM