how can auto-complete colon(:) in kotlin? and switch var, val in suggestion
已回答
1. when i generate function..
fun hello(a: Int, b: Int ... ). colon(:) it is troublesome.. (shift + ;)
Is there any way to complete this process with space bar or command + shift + enter?
2. when i Typeing 'v' or 'va' suggestion is shown like this

but i want 'var' and 'val' swith.
i want 'val' is first. so I checked 'Sort suggestion alphabetically' but it doesn't help. focous is always 'var' first
请先登录再写评论。
1. You can use "fun2" live template for that. Semicolons will be inserted automatically and you'll need to change focus with tab only.
2. May you show the context? Can't reproduce: https://i.imgur.com/eQE7jn0.png
Thanks you.
I've re-uploaded the image here. Do you see well?
Try disabling machine learning completion : https://i.imgur.com/l0bEYIA.png
Also, selecting "val" several times should move it upper in the future if ML completion is enabled.