dead programmer
dead programmer

Reputation: 4365

autoformat multi-line comment to single line intellij

I have code contains single line comments on variables(intentionally).

  /** The object mapper. */
  @Autowired
  private ObjectMapper objectMapper;

But when I autoformat(ctrl+alt+l) it changes the single line comment to multi-line which I don't want.

I checked with the setting of Intellij but there is no such option.

Upvotes: 1

Views: 518

Answers (1)

dead programmer
dead programmer

Reputation: 4365

After investigation i find the solution for intellij

Setting->editor->code style->java->java doc->others (tick donot wrap one line comments)

Upvotes: 1

Related Questions