Sublime Text under Configuration python

Source: Internet
Author: User
Tags sublime text

Sublime Text 2 is a lightweight editor with distinctive features, easy to use, and multi-lingual support.

One, Control+b Way 1. Click Preferences on the toolbar to open the Browse Packages. Locate Python in the Open folder and open the folder. Locate the file Python.sublime-build and open it. 2. Modify the following: {"cmd": ["Python", "-U", "$file"], "path": "f:/program files/python27 ",//red indicates the installation directory that needs to be modified
"File_regex": "^[]*file \" (...) \ ", line ([0-9]*)", "selector": "Source.python"} to modify the contents of path into the compiler's installation directory. Save the code and the Ctrl+b will run. Second, SUBLIMEREPL mode 1.package control

Recommended online installation method. First open Ctrl + ~, enter the following code:

Import Urllib2,os; pf=‘Package Control.sublime-package‘; IPP = Sublime.installed_packages_path (); Os.makedirs (IPP)
If not os.path.exists (IPP) else None; Urllib2.install_opener (Urllib2.build_opener (urllib2. Proxyhandler ()));
Open (Os.path.join (IPP, pf), 'wb'). Write (Urllib2.urlopen ( '' + Pf.replace ( ' ,'%20 ')). read ());
print ( 'restart Sublime Text to finish installation')

Restart software after installation

2. Enter shift+ctrl+p and enter the install package Select this option and then type SUBLIMEREPL.

Sublime Text under Configuration python

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: 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.