SUBLIME TEXT2 Windows Basic Environment Configuration +python
Software version sublime text 2,
PC Environment:windows 7, bit
Configuration time: year by month Day
1. The default installation location is modified to:
C:\Program Files\sublimetext
(The installation location defaults to C:\Program files\sublime Text 2, but error trying to parse settingswill appear after installation : ... The error is not known for the reason at present. )
2. Install the package control
Ctrl + ~ Bring up the console
Copy the code to the console, and then enter (SUBLIME TEXT3 code differs from SUBLIME text2 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 '
(Sublime Text3 The code that should be copied:
Import Urllib.request,os; PF = ' package control.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); Open (Os.path.join (IPP, PF), ' WB '). Write (Urllib.request.urlopen (' http://sublime.wbond.net/' + pf.replace (', '%20 ')) . Read ()))
3. Restart Sublime Text2
4. Change the theme:
To change the font size:
The font size is adjusted to one or The other, the individual feels more comfortable
Preference->browse package go to the \python directory
Open the Python.sublime-build file, modify it as shown,
where path changes to its own python Environment installation directory,working_dir to the working directory set according to your preference
Test it:
Similarly install python Code Auto-Complete plug-ins:jedi-python autocompletion,
After the installation is complete, test the effect:
The same tab key automatically prompts for available functions
This is realy awesome~~~(which is very good ~ ~ ~)
SUBLIME TEXT2 Basic Environment Configuration +python