本插件只適用 android studio和 Intellij IDEA 工具
這是一個根據(jù)JSONObject格式的字符串,自動生成實體類參數(shù),即一鍵根據(jù)json文本生成java類。
https://github.com/zzz40500/GsonFormat
1.安裝方法
方法1:
1.Android studio/IDEA
File->Settings..->Plugins-->Browse repositores..搜索GsonFormat
2.安裝插件,重啟android studio/IDEA
方法2: 下載地址
1.下載 GsonFormat.jar
2.Android studio/IDEA File->Settings..->Plugins -->
install plugin from disk..導(dǎo)入下載的 GsonFormat.jar
3.重啟 android studio/IDEA.
2.打開方法
快捷鍵:默認(rèn) option + s (mac),Alt + S (win)
3.使用截圖(gif)

gsonformat.gif