-
Notifications
You must be signed in to change notification settings - Fork 645
gpls import order #3059
Comments
I meet similar problem when using vscode with basic Go plugin configuration. When I put all imports together, the plugin split the imports into multiple blocks (I used When I set Any idea? |
If you want your imports to be organized on save then they will be grouped this way, as the default behavior of the If you only want to use the language server but only have formatting on save (@ruinshe, I believe this is your case), then you can add the following configuration to your "[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": false,
},
"editor.formatOnSave": true
} |
@stamblerre Thanks for the quick reply, and Your solution works for me. |
Going to close this issue since it hasn't had much activity in the last month. @zxwtry: please reopen this issue if you're still encountering problems. |
alphabetical:'
"fmt"
"github.com/xxx"
"log"
"os / github / xxx" :
"fmt"
"log"
"github.com/xxx"
i want to order imports in alphabetical
but formatTool will change to "os / github / xxx"
how to keep alphabetical? thx
The text was updated successfully, but these errors were encountered: