Skip to content

Instantly share code, notes, and snippets.

@simonw
Created July 11, 2012 12:35
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonw/3090102 to your computer and use it in GitHub Desktop.
Save simonw/3090102 to your computer and use it in GitHub Desktop.
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
Copy link
Author

simonw commented Jul 11, 2012

Other packages I install: SublimeCodeIntel, Pretty JSON

@simonw
Copy link
Author

simonw commented Jul 11, 2012

(your PEP8 ignore preferences may vary)

@jtauber
Copy link

jtauber 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
Copy link
Author

simonw commented Jul 11, 2012 via email

@keimlink
Copy link

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