Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Annotations on same line as property #29

Open
eyalch opened this issue Jun 20, 2019 · 1 comment
Open

[Feature Request] Annotations on same line as property #29

eyalch opened this issue Jun 20, 2019 · 1 comment

Comments

@eyalch
Copy link

eyalch commented Jun 20, 2019

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!

@nvinayshetty
Copy link
Owner

nvinayshetty commented Sep 1, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants