Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Golang regroup importsNew to Visual Studio Code? Get it now.
Golang regroup imports

Golang regroup imports

elszon

|
274 installs
| (0) | Free
Regroup golang imports on save
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Golang regroup imports

VSCode extension for separating imports in Go files into groups:

  1. Standard library
  2. Third party
  3. Organization
  4. Module
  5. Blank
  6. Dot

Extension Settings

!NOTE Setting are applied after vscode restart.

  • regroupImports.onSave: automatically group imports on save. Default value is true.
  • regroupImports.organization: organization prefix. Default value is empty string.
  • regroupImports.organizationOnly: one group for organization that contains all modules prefixed with organization. Default value is false.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft