Sublime Configuring the Python development environment

Source: Internet
Author: User
Tags sublime text

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.