格式化前: function you_func() { return xxx; } 格式化后: function you_func() { return xxx; } 在PhpStorm中的配置:File——Settings——Editor——Code Style——PHP