1.安装GsonFormat Ctrl+Alt+S 打开设置界面,点击Plugins ,点击Browse repositories… 在搜索框输入GsonFormat,点击Install安装 安装成功后,点击Restart IntelliJ IDEA重启IDEA