antohaby / kotlin-fill-class

Intellij plugin that provides intention action for empty constructor

Home Page:https://plugins.jetbrains.com/plugin/10942-kotlin-fill-class

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

License:MIT License


Languages

Language:Kotlin 98.6%Language:HTML 1.4%