Hi all. is it possible in android studio to align ...
# codingconventions
v
Hi all. is it possible in android studio to align constructor assignment?
Copy code
CPTViewModel(
        selectionType = null,
        taskName = task.displayName,
        projectName = projectInfo.project.name,
        customerName = projectInfo.customer.name,
        isTaskVisible = true
)
to
Copy code
CPTViewModel(
        selectionType = null,
        taskName      = task.displayName,
        projectName   = projectInfo.project.name,
        customerName  = projectInfo.customer.name,
        isTaskVisible = true
)
no red 4
rage1 1
y
no, there is no such feature. we find that any kind of vertical alignment is very difficult to preserve when source code changes
v
but there is align for
when
expression...
b
IMO, I would HATE having anything like that align that would cause excessive source code churn just because
selectionType
got changed to
selectionTypes
. But FWIW, I also dislike the double indent when wrapping if conditions and function parameters