isort
A python import sort plugin(See https://github.com/timothycrosley/isort)
Details
Installs
- Total 7K
- Win 1K
- Mac 3K
- Linux 3K
Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 |
Mac | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 1 | 1 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime text isort plugin
Small plugin that adds a command to sublime which replaces the contents with the output of the isort library. See below for more information about the library
Install
Package Control
Available in @wbond's package control. Just bring up the package control menu in sublime (default ctrl-shift-p
), and enter Package Control: Install Package
, search for isort
.
Manual
Clone this repository from your Sublime packages directory:
Linux (untested)
$ cd ~/.config/sublime-text-2/Packages
$ git clone https://github.com/thijsdezoete/sublime-text-isort-plugin
OSX
$ cd "~/Library/Application Support/Sublime Text 2/Packages"
$ git clone https://github.com/thijsdezoete/sublime-text-isort-plugin
Windows
$ cd "%APPDATA%\Sublime Text 2"
$ git clone https://github.com/thijsdezoete/sublime-text-isort-plugin
isort your python imports for you so you don't have to.
isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections. It provides a command line utility, Python library, Vim plugin, Sublime plugin, and Kate plugin to quickly sort all your imports.
for more details on isort see the isort repo.
Using isort
By default isort command is run on save. To change this behaviour set your user/project settings to include:
{
"isort.sort_on_save": false,
}
You can also run the command manually by bringing up the command menu, and select “isort: sort imports” command.
Note that the command is only visible, and runs on autosave, when used on “python files”.