Skip to content

sudajiaqi/moon-style

Repository files navigation

moon-style

Build Version Downloads

This is a tool set for editor

Usage:

Converter method

  1. Put the caret in any place within the class, press Alt+Ins or Command + n.
  2. select Converter method in menu or use the shortcut Ctrl+Alt+G. 3.In the dialog select the Class you want to convert To and select the class you want to convert From.
  3. Press Ok and converter method will be added to your current class.
  4. Plugin also writes in comments list of fields, that were not mapped (appropriate setter or getter is missing or different types).

Converter to method

  1. Put the caret in any place within the class, press Alt+Ins or Command + n.
  2. select Converter to method in menu.
  3. In the dialog select the Class you want to convert To.
  4. Press Ok and converter method will be added to your current class.
  5. Plugin also writes in comments list of fields, that were not mapped (appropriate setter or getter is missing or different types).

Converter from method

  1. Put the caret in any place within the class, press Alt+Ins or Command + n
  2. select Converter from method in menu.
  3. In the dialog select the Class you want to convert From.
  4. Press Ok and converter method will be added to your current class.
  5. Plugin also writes in comments list of fields, that were not mapped (appropriate setter or getter is missing or different types).

To Json

  1. Open the java class which you want to generate a json object for
  2. Click or Right Click the class ,and select To Json
  3. Finally, you can paste the json to anywhere

To Yaml

  1. Open the java class which you want to generate a yaml object for
  2. Click or Right Click the class ,and select To Yaml
  3. Finally, you can paste the json to anywhere

Installation

  • Using the IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "moon-style"" > Install

  • Using JetBrains Marketplace:

    Go to JetBrains Marketplace and install it by clicking the Install to ... button in case your IDE is running.

    You can also download the latest release from JetBrains Marketplace and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...


Plugin based on the IntelliJ Platform Plugin Template.