

For example, I ignore the following PEP 8 errors and warnings:Ĭheck out the official documentation as well as this handy cheat sheet for more info. You can customize each linter in the user-defined SublimeLinter.sublime-settings file: Sublime Text > Preferences > Package Settings > SublimeLinter > Settings - User. Note: Most of these linters have dependencies associated with them, so please read the installation instructions before installing. I also use SublimeLinter-jshint, SublimeLinter-pyyaml, SublimeLinter-csslint, SublimeLinter-html-tidy, and SublimeLinter-json. Check out the installation instructions here.įor Python linting, I recommend using SublimeLinter-pyflakes and SublimeLinter-pep8. There are also a number of third party linters, which can be viewed in Package Control. The package itself does not include any actual linters those must be installed separately via Package Control using the SublimeLinter- naming syntax. SublimeLinter is a framework for ST3 linters. Requirementstxt provides autocompletion and syntax highlighting as well as a nice version management system for your requirements.txt files. Refer to the documentation for help, and also check out some of my snippets here. Note: You can also create your own snippets: Tools > New Snippet. Also, if you type defs and then press Tab in a Python file, it will setup a generic function. You should get a paragraph of lorem ipsum text. To try one for yourself, open a new file, type in lorem, and press Tab.



Note: This tutorial assumes you’re using a Mac and are comfortable with the terminal. In this article, we’ll look at how to setup Sublime Text for full stack Python development (from front to back), enhance the basic functionality with custom themes and packages, and use many of the commands, features, and keyword shortcuts that make ST3 so powerful. It’s an incredible editor right out of the box, but the real power comes from the ability to enhance its functionality using Package Control and creating custom settings. Sublime Text 3 (ST3) is a lightweight, cross-platform code editor known for its speed, ease of use, and strong community support.
