Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.74 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.74 KB

CircleCI jetBrains

kotlin-fill-class plugin

Intellij plugin that provide intention action for empty constructor or function to fill property with default value. Inspired by Go fillstruct

Usage

This plugin add intention action for invalid constructor or function expression. kotlin fill class demo

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