SUBLIME TEXT2 Basic Environment Configuration +python

Source: Internet
Author: User
Tags sublime text

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

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.