how can auto-complete colon(:) in kotlin? and switch var, val in suggestion

Answered

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
 
 
 
0
4 comments

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

0

Thanks you.

 

I've re-uploaded the image here. Do you see well?



0

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. 

0
 
thanks for the kind reply !
 
 
 
 
0

Please sign in to leave a comment.