ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Go​Imports

by ticcky ST3

Sublime3 Plugin for integrating goimports (https://github.com/bradfitz/goimports) to your favorite editor.

Labels go

Details

  • 2017.11.17.05.38.41
  • github.​com
  • github.​com
  • 10 months ago
  • 41 minutes ago
  • 5 years ago

Installs

  • Total 10K
  • Win 3K
  • OS X 5K
  • Linux 3K
Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11
Windows 0 1 2 2 5 1 2 3 4 1 1 2 4 1 4 2 1 2 2 3 1 2 1 3 0 0 1 1 4 4 0 0 4 2 1 2 4 3 1 1 3 5 1 2 1 2
OS X 0 3 2 1 5 0 3 5 4 2 1 6 6 2 6 4 0 3 4 4 2 0 3 0 1 3 1 5 7 1 5 4 2 3 3 5 1 2 1 2 2 3 4 5 6 5
Linux 1 2 2 0 2 4 3 1 2 1 1 3 0 1 2 2 1 0 4 0 2 1 3 1 3 3 0 0 1 2 1 1 3 3 1 1 0 0 2 3 1 10 0 1 1 1

Readme

Source
raw.​githubusercontent.​com

GoImports Sublime3 Plugin

Sublime3 Plugin for integrating goimports (https://github.com/bradfitz/goimports) to your favorite editor.

Usage

  1. Clone the repository to your plugins folder.

    git clone https://github.com/ticcky/GoImports.git ~/.config/sublime-text-3/Packages/GoImports  # for Linux
    
  2. Specify the path to the goimports binary in GoImports.sublime-settings.

    {
        "goimports_bin_path" : "/usr/local/bin/goimports"
    }
    
  3. Add to your sublime keys the following command and whenever you want to run goimports hit F4. It will format/automatically adjust imports in the current go file.

    { "keys": ["f4"], "command": "go_imports" },
    
  4. Roll ;)