goclipse icon indicating copy to clipboard operation
goclipse copied to clipboard

auto show a prompt to import package when typing un-import package name

Open jiangyubao opened this issue 9 years ago • 3 comments

for example, when typing 'fmt.', we need a prompt to import fmt package

func main(){ fmt. }

after auto import, it will look like this:

import ( "fmt" ) func main(){ fmt. }

jiangyubao avatar Apr 13 '15 07:04 jiangyubao

:plus1:

parhamdoustdar avatar Sep 24 '15 12:09 parhamdoustdar

You can have auto-imports on format by replacing "gofmt" with "goimports". See #66

baconalot avatar Sep 29 '15 14:09 baconalot

It isn't automatic though. You have to type fmt., press ctrl+shift+F to format, and then press ctrl+space to get suggestions, for example.

parhamdoustdar avatar Feb 01 '16 17:02 parhamdoustdar