Plugin Icon if
  • Code Tools

GsonFormatPlus

Обновлено:
5 месяцев назад
Версия:

1.6.1

Обзор
Версии

Обзор

README_EN

Github | Manual | Issues

GsonFormatPlus This is a plugin you can generate Json model from Json String.This Plugin is only for IntelliJ IDEA And Android Studio.which is base on GsonFormat and more flexible and convenient. Welcome to issue and PR.

Install

  • Using IDE built-in plugin system on Windows:

    • File > Settings > Plugins > Browse repositories... > Search for "GsonFormatPlus" > Install Plugin
  • Using IDE built-in plugin system on MacOs:

    • Preferences > Settings > Plugins > Browse repositories... > Search for "GsonFormatPlus" > Install Plugin
  • Manually:

    • Download the latest release and install it manually using Preferences > Plugins > Install plugin from disk...
    • From official jetbrains store from download

Restart IDE.

Usage

1.Use IDE menu

Generate.png

2.Use hotkey

Default Option + s(Mac), Alt + s (win)

You can change the hotkey via:

修改快捷键.png

3.Use Demo

gsonformatgeneratorgif

4.Setting

gsonformatsettingpng

 

SETTING

modulevaluedefaultdescription
Convert Methodobject/arrayFromDatafalseGson convert method
Generatevirgo modetruevirgo mode
Generategenerate commentsfalsegenerate comments
Generatesplit generatefalsesplit generate sub class
Beanreuse beanfalseTODO
Fieldname suffixtrueclass suffix
Fieldfield(private/public)trueaccess level
Fieldname prefixtruefield name prefix
Fielduse serialized nametrueuse serialized name
Fielduse wrapper classtrueuse wrapper class,eq: int convert Integer
Fielduse lomboktrueuse lombok replace Getter/Setter
Fielduse number key as maptrueuse number key as map,TODO
Convert libraryjackson/fastjsontruejackson/fastjson convert library

 

Version Info

1.6.0 by wangzhejun

  • support auto format
  • fix comment position
  • fix camel convert

1.5.8 by wangzhejun

  • fix json camel bug
  • fix bool property default is function
  • fix comment conflict

1.5.7 by wangzhejun

  • fix some json5 format bug

1.5.6 by mars-men

  • remote json dialog ‘VK_ENTER’ listener
  • update readme

1.5.5 by mars-men

  • upload to jetbrain plugin center

1.5.2 by wangzejun

  • support field comment
  • support json5 format

1.5.1 by mars-men

  • setting jackson annotation as default
  • support lombok as option
  • fix some bug

1.5.0 - 3 years ago by gsonformat

  • fix several bug
  • fix unlock setting window size

1.4.0

  • New: Support for autovalue
  • New: Support for lombok
  • New: Support for split generate class

the end

Версии

Версия
Диапазон совместимости
Дата обновления
2021
1.6.1
135.121+
07.04.2021
Скачать
Plugin ID:
GsonFormatPlus
icon