Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setting up Sublime Text 2
First, install it from http://www.sublimetext.com/2
Next, install the package control extension from here:
http://wbond.net/sublime_packages/package_control
Installation instructions here: http://wbond.net/sublime_packages/package_control/installation
Restart Sublime, then hit Shift+Apple+P and search for "Package Control: Install Package"
Install Sublime Linter.
Open the Linter settings:
http://simonwillison.net/static/skitch/Fullscreen-20120711-133338.jpg
Paste in the following:
{
"sublimelinter_delay": 0.5,
"pep8_ignore":
[
"W293",
"E501",
"E203",
"E303",
"E225",
"E261",
"E251",
"E401",
"E301",
"E302",
"W291",
"W391"
]
}
@simonw

This comment has been minimized.

Copy link
Owner Author

commented Jul 11, 2012

Other packages I install: SublimeCodeIntel, Pretty JSON

@simonw

This comment has been minimized.

Copy link
Owner Author

commented Jul 11, 2012

(your PEP8 ignore preferences may vary)

@jtauber

This comment has been minimized.

Copy link

commented Jul 11, 2012

@simonw I seem to recall you like your intra-block blank lines indented like I do. Do you know a way to get Sublime to flag true "trailing" whitespace but not flag indented intra-block blank lines?

@simonw

This comment has been minimized.

Copy link
Owner Author

commented Jul 11, 2012

@keimlink

This comment has been minimized.

Copy link

commented Jul 12, 2012

I find the trailing spaces plugin very helpful for Python coding: https://github.com/SublimeText/TrailingSpaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.