打开设置界面,依次选择Editor-Code Style-Java,选择Code Generation,取消Line comment at first column和Block comment at first column的选中即可。
其它语言类似设置。