Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Automatically formats Python code to conform to the PEP 8 style guide using autopep8 and pep8 modules
Python JavaScript

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
messages
AutoPep8 (Windows).sublime-settings
AutoPep8.sublime-commands
AutoPep8.sublime-settings
Context.sublime-menu
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap
Default.sublime-commands
Main.sublime-menu
Readme.md
Side Bar.sublime-menu
autopep8.py
messages.json
packages.json
pep8.py
sublautopep8.py

Readme.md

Sublime Auto PEP8 Formatting

About

Automatically formats Python code to conform to the PEP 8 style guide using autopep8 module

Features

  • format / preview code according PEP8
  • format / preview multi-selected text
  • format / preview all python modules in folder
  • side bar menu
  • formated code while saving

Installing

With the Package Control plugin: The easiest way to install AutoPEP8 in through Package Control, which can be found at this site: http://wbond.net/sublime_packages/package_control

Once you install Package Control, restart ST2 and bring up the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows). Select "Package Control: Install Package", wait while Package Control fetches the latest package list, then select AutoPEP8 when the list appears.

With Git: Clone the repository in your Sublime Text "Packages" directory: git clone git@github.com:wistful/SublimeAutoPEP8.git AutoPEP8

Without Git: Download the latest source from GitHub and copy to your Sublime Text "Packages" directory as AutoPEP8.

Using

AutoPEP8 runs in one of two modes:

  • AutoPep8 Format (Command/Control + Shift + 8) - automatically formats code
  • AutoPep8 Preview (Command/Control + 8) - open new tab to preview changes

You can also select mode by mouse right click.

Something went wrong with that request. Please try again.