DTOnator icon indicating copy to clipboard operation
DTOnator copied to clipboard

[Feature Request] Annotations on same line as property

Open eyalch opened this issue 5 years ago • 1 comments

Say we have the following:

data class User(
        @SerializedName("name")
        val name: String,
        @SerializedName("age")
        val age: Int,
        @SerializedName("email")
        val email: String,
        @SerializedName("color")
        val color: String
)

IMO, this is quite long. I would love it if there was an option to have the @SerializedName annotation on the same line as the property, like the following:

data class User(
        @SerializedName("name") val name: String,
        @SerializedName("age") val age: Int,
        @SerializedName("email") val email: String,
        @SerializedName("color") val color: String
)

Thanks in advance!

eyalch avatar Jun 20 '19 08:06 eyalch

Hey, this has nothing to do with the plugin! How the code is formatted depends on the code formatting setting of your IDE. Change your code formatting settings it will just work

nvinayshetty avatar Sep 01 '19 04:09 nvinayshetty