Build all (go build ./...) and build current package

We are using the modules outside the $GOPATH. 

One of the things I'm using a lot is `go build ./...`. How can I set it up as a run configuration? 

As well as I do want to be able to build the package wich file I'm editing right now, how can I do that? 

1 comment
Comment actions Permalink

Hi Pavel,

Sorry for the delay. You cannot do this as a Run configuration as the command doesn't produce the single binary to run (at least before it was required).

What you can do is create an External tool (`Preferences | Tools | External Tools`) and bind it to any shortcut in `Preferences | Keymap` configuration. There you can set something like this:



Please sign in to leave a comment.