在idea中快速注释ctrl+/,注释会在行首位置的问题

打开settings。

依次点击Editor ——> Code Style ——> Java ——> Code Generation。

找到Comment Code。

Line comment at first column(行注释在第1列)(取消勾选)

Add a space at comment start(在注释开始添加一个空格)(建议勾选)

Block comment at first column(注释快在第1列)(取消勾选)

如图:
在idea中快速注释ctrl+/,注释会在行首位置的问题_第1张图片

你可能感兴趣的:(快捷键,intellij,idea)