android studio添加插件(GsonFormatPlus)

1,586 阅读1分钟

Flie->Settings->Plugins

Snipaste_2021-07-05_15-40-58.png

(如果搜索没有显示,把防火墙关掉就好了)

下载安装后重启android studio

新建一个类

image.png

右击选择Generate

image.png

选择刚刚安装的GsonFormatPlus

image.png

然后会弹出一个内容编辑框, 将需要解析使用的json 字符串,复制进去

image.png

点击Format格式化,更清晰的知道它们之间嵌套关系

image.png

选择setting 2、3、4默认是选上的我把它们取消了,OK

image.png

image.png

image.png

image.png