https://kotlinlang.org logo
#compose
Title
# compose
f

Fudge

05/15/2019, 9:41 PM
Right now when you press
ctrl+space
in a composable constructor it shows you the suggestions for the current positional parameter (in this case
TextAlign
), and then all of the available optional parameters. Is there plans to bump up the positional parameters in autocompletions of composable constructors? I think It would be a good idea.
When a parameter was already chosen (e.g. you typed
textAlign =
) obviously it should only display the completions for that parameter(a
TextAlign
).
l

Leland Richardson [G]

05/15/2019, 11:45 PM
yeah i agree. thanks for surfacing this. we did a lot of fancy stuff with code completion with the previous syntax, but have not yet been able to make it better for the normal function call syntax as it’s more difficult for us to intercept it. Hopefully will be making some changes to this soon
though in your example you haven’t actually typed any named parameters yet
and IIRC, intellij will do the right thing once you do
f

Fudge

05/16/2019, 10:25 AM
@Leland Richardson [G] Yes, you're right, but I think it should happen even without having typed named parameters
👍 1
2 Views