Skip to content

antohaby/kotlin-fill-class

 
 

Repository files navigation

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

About

Intellij plugin that provides intention action for empty constructor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 98.6%
  • HTML 1.4%