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 ( 'http://sublime.wbond.net/' + 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