joefitzgerald/go-plus

Better autocomplete for a statement while creating a slice using make

rajalokan opened this issue · 0 comments

Description

Better autocomplete when creating a slice using make

Steps to Reproduce

  1. Try creating a slice like this statement a := make([]int, 5)
  2. While writing above we get autocomplete of make, on selecting the autocomplete we tab complete to type and size like a := make(<type>, 0). In this is auto highlighted and on hitting tab again takes me to 0. This is expected.
  3. Issue is when I fill with [], I have to manually go after [] and place int. As a feature, I was thinking if we can do the three steps together with three tab press instead of two tab step and manually reaching after [].

Hope I'm clear about above.

Expected Behavior

Autocomplete with three tab press.

Actual Behavior

Autocomplete with only two tab press.