# ideaCustomTool
**Repository Path**: chenfoxin/ideaCustomTool
## Basic Information
- **Project Name**: ideaCustomTool
- **Description**: 针对网络上找不到的功能封装的idea插件,目前支持MapStruct@Mapping根据source和target的匹配自动生成,ToString字符串转Json格式格式文本功能
- **Primary Language**: Java
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 4
- **Forks**: 0
- **Created**: 2023-04-06
- **Last Updated**: 2024-04-06
## Categories & Tags
**Categories**: Uncategorized
**Tags**: 自动生成, MapStruct
## README
ToStringToJson
This is a plugin you can generate Json model from Json String.
**This Plugin is only for IntelliJ IDEA**.
which is base on [GsonFormat](https://github.com/zzz40500/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 "ToStringToJson" > Install Plugin
- Using IDE built-in plugin system on MacOs:
- Preferences > Settings > Plugins > Browse repositories... > Search for "ToStringToJson" > Install Plugin
- Manually:
- Download the [latest release](https://github.com/mars-men/ToStringToJson/releases) and install it manually using Preferences > Plugins > Install plugin from disk...
- From official jetbrains store from [download](https://plugins.jetbrains.com/plugin/14949-ToStringToJson/)
Restart IDE.
## Usage
### 1.Use IDE menu

### 2.Use hotkey
Default **Option + s**(Mac), **Alt + s** (win)
You can change the hotkey via:

### 3.Use Demo

### 4.Setting

SETTING
| module | value | default | description |
| --- | --- | --- | --- |
| Convert Method | object/arrayFromData | false | Gson convert method |
| Generate | virgo mode | true | virgo mode |
| Generate | generate comments | false | generate comments |
| Generate | split generate | false | split generate sub class |
| Bean | reuse bean | false | TODO |
| Field | name suffix | true | class suffix |
| Field | field(private/public) | true | access level |
| Field | name prefix | true | field name prefix |
| Field | use serialized name | true | use serialized name |
| Field | use wrapper class | true | use wrapper class,eq: int convert Integer |
| Field | use lombok | true | use lombok replace Getter/Setter |
| Field | use number key as map | true | use number key as map,TODO |
| Convert library | jackson/fastjson | true | jackson/fastjson convert library |
## Version Info
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