Open a terminal, move to Packages directory (refers to the folder that opens when you use the Preferences > Browse Packages… menu).Using mercurial (hg) repository on bitbucket: Look for Python PEP8 Autoformat and install it.Use cmd+shift+P shortcut then Package Control: Install Package.To avoid dependencies, all necessary modules are included within the package. So, for fun and learning, I decided to create Python PEP8 Autoformat, based on autopep8 as code formatter and pep8 as code linter. Under Sublime Text 2 I installed PythonTidy but unfortunately it did not work for me. One of my main usages of PyDev (very good Eclipse plugin for Python developer) is the code formatter. Some time ago, looking for a possible Eclipse replacement, I gave a try to Sublime Text 2. Both Sublime Text versions 2 and 3 are supported. Python PEP8 Autoformat is a Sublime Text plugin to interactively reformat Python source code according to PEP-8 (Style Guide for Python Code).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |