一、前后对比 修改前: 修改后: 二、解决方法 1.点击File打开Settings 2.找到Editor下的Code Style,去掉Comment at first column的勾选 3.在PHP的Code Generation中勾选Add a space at comment start