Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Golang Imports SorterNew to Visual Studio Code? Get it now.
Golang Imports Sorter

Golang Imports Sorter

t1mt

|
3 installs
| (0) | Free
VSCode extension for sort imports in go files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

go-imports-sorter

VSCode extension for separating imports in Go files into three (or four depending on the settings) groups:

  1. Standard library imports,
  2. Third party imports,
  3. (OPTIONAL) Organization imports (when is configured in settings),
  4. Own (belonging to the modue) imports.

Extension Settings

  • goImportsSorter.onSave: automatically group imports on save. Default value is true.
  • goImportsSorter.organizationPkg: Organization package prefix (e.g., 'github.com/myorg'). Imports from this prefix will be grouped separately. Default value is "".
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft