liteide icon indicating copy to clipboard operation
liteide copied to clipboard

support goimports -local

Open mpictor opened this issue 5 years ago • 0 comments

What version of LiteIDE are you using (LiteIDE About - Version and Build Qt Version)?

LiteIDE X36.3 Qt 5.13.2

What version of Go are you using (go version)?

go version go1.14.1 linux/amd64

What operating system and processor architecture are you using(go env)?

GOARCH="amd64" GOOS="linux"

What did you do?

liteide's automatic formatting is limited compared to what goimports can do. I want the equivalent of goimports -local option, which allows keeping imports with a particular prefix separate:

$ goimports -h

usage: goimports [flags] [path ...]
  ...
  -local string
        put imports beginning with this string after 3rd-party packages; comma-separated list
  ...

What did you expect to see?

A checkbox and textbox to configure the option

What did you see instead?

It seems there's no way to enable this behavior for automatic formatting.

mpictor avatar Apr 07 '20 04:04 mpictor