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
  • 7 years ago
  • 4 days ago
  • 11 years ago

Installs

  • Total 16K
  • Win 5K
  • Mac 7K
  • Linux 4K
Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 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
Windows 0 0 0 0 1 0 2 0 1 0 0 2 0 1 0 0 0 1 0 0 0 2 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 1
Mac 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 3 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 1 0 1 0 0 3 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0

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