Package Control
The package control is a bundle manager that installs add-ons directly in sublime. You can install it manually by following these steps:
1. Click Preferences > Browse Packages menu
2. Go to the upper-level directory of the Open directory before entering the installed packages/directory
3. Download the package control.sublime-package and copy it to the installed packages/directory
4. Restart Sublime Text.
install Pythonand add the Execute program to the environment variable path.
Install plug-ins and set properties (Preferences > Packages settings)
You can install using the package control, and it is recommended to install three plugins:
1. SUBLIMEREPL allows you to run the Python interpreter directly from the editing interface.
2. Sublimecodeintel enhanced Auto-completion for some languages, including Python. This plugin also allows you to jump to the definition of the symbol, by holding down ALT and clicking on the symbol.
Configuration file Sublimecodeintel.sublime-settings-user
{" python": { "python": "C:/python27/python.exe", "pythonextrapaths": [ "C:/python27", " C:/python27/dlls ", " C:/python27/lib ", " C:/PYTHON27/LIB/LIB-TK ", " C:/python27/lib/site-packages " ] }}
3. Pylinter This plugin provides the best pylint editor integration I've ever seen. It automatically checks the. py file whenever it is saved and displays the Pylint violation directly in the edit screen, and the Python format is checked when the file is saved.
Install Pylinter, set the Pylinter.sublime-settings file:
"Pylint_path": "C:/python27/lib/site-packages/pylint-1.4.4-py2.7.egg/pylint",
set the font to look good, Ubuntu Mono is very very nice font, set preferences.sublime-settings:
{ "color_scheme": "Packages/user/monokai (flake8lint). TmTheme", "Font_face": "Ubuntu Mono", "Font_ Size ":", "ignored_packages": [ "Vintage" ]}
Sublime Configuring the Python development environment