Intellij plugin that provides quick fix action for empty constructor
Switch branches/tags
Nothing to show
Clone or download
Latest commit ea1d3c1 Aug 25, 2018

README.md

kotlin-fill-class plugin

Intellij plugin that provide quick fix action for empty constructor to fill property with default value. Inspired by Go fillstruct

Usage

This plugin add quick fix action for invalid constructor expression. fill-class

How to install

Install from jetbrains plugins repository. https://plugins.jetbrains.com/plugin/10942-kotlin-fill-class

TODO

  • Fill default parameter for non primitive type. Currently this plugin dose not support class like below.
data class Address(zipCode: String)

data class User(
       val name: String,
       val age: Int,
       val address: Address  // Currently this plugin fills empty value for this parameter
)
  • Fill parameters for non primary constructor. Currently this plugin only fill parameters for primary constructor.

Thanks

  • @Pluu @naofumi-fujii fix #2 Double type fill error