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
  • 2 years ago
  • 44 minutes ago
  • 6 years ago

Installs

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

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 ;)