根据这篇文章,可以在 GoClipse 中启用自动导入:
1) install goimports:
go get code.google.com/p/go.tools/cmd/goimports
2) in eclipse goto: Preferences -> Go -> Go Formatter and set it to be the path of the goimports bin
This will fix all imports when you format. If you combine this with #67, then imports will be automatically fixed on save.
问题
当我尝试在 Eclipse 中搜索 Go Formatter 时,我找不到它。
明月笑刀无情
相关分类