Sublime Text 3 builds a python development environment

Source: Internet
Author: User
Tags sublime text



The predecessors have said a lot, but they will still appear a variety of problems, write a log record of the building experience.



1. Install python, I use python3.5, can download



2. Install Sublime Text 3, you can download the website



3. Install the plugin:



Package Control: First install this plug-in, more trouble, you can directly crossing network description



1. Open the command line interface, use CTRL + ' shortcut key or menu item View > Show Console



2.Sublime Text 3 Copy the following code

ImportUrllib.request,os,hashlib; h ='df21e130d211cfc94d9b0905775a7c0f'+'1e3d39e33b79698005270310898eea76'; PF ='Package Control.sublime-package'; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); by = Urllib.request.urlopen ('http://packagecontrol.io/'+ Pf.replace (' ','%20'). read (); DH = hashlib.sha256 (by). Hexdigest ();Print('Error validating download (got%s instead of%s), please try manual install'% (DH, h))ifDH! = hElseOpen (Os.path.join (IPP, PF),'WB'). Write (by)


3.Sublime Text 2 Copy the following code

ImportUrllib2,os,hashlib; h ='df21e130d211cfc94d9b0905775a7c0f'+'1e3d39e33b79698005270310898eea76'; PF ='Package Control.sublime-package'; IPP = Sublime.installed_packages_path (); Os.makedirs (IPP)if notOs.path.exists (IPP)ElseNone; Urllib2.install_opener (Urllib2.build_opener (urllib2. Proxyhandler ())); by = Urllib2.urlopen ('http://packagecontrol.io/'+ Pf.replace (' ','%20'). read (); DH = hashlib.sha256 (by). Hexdigest (); Open (Os.path.join (IPP, PF),'WB'). Write (by)ifDH = = hElseNone;Print('Error validating download (got%s instead of%s), please try manual install'% (DH, h)ifDH! = hElse 'Restart Sublime Text to finish installation')


Add the Package Control option under the Preferences menu to install successfully









Theme : Colorsublime offers a number of themes that you can choose from your favorite



Sidebarenhancements: Extended sidebar function, required



Ctrl+p Search for the install in the package control,






Then search sidebarenhancements, click Install









Anaconda: Many features, such as code hints, must be



Ctrl+p Search for the install in the package control,



Go to the installation screen, install and then enter Anaconda in the new Window command line and click on the first option to install.









Modify in Settings-default



After Python_interpreter is the Python default installation location, my Python installation directory is in E:\Python\python.exe, note the backslash



The Settings-user is configured as follows:


{"python_interpreter": "E:/python/python.exe",true,true, true ,}


sublimelinter: Code checking tool, can set four kinds of working state






Save your resources and keep your ST3 smooth



In save only mode, the code is finished, and the code error and warning will be indicated after saving.






You can set the prompt way, as well, show Errors on save



Installation process:



1. Installing Sublimelinter



Method Ibid.



2. Install PEP8 or Pyflakes



Install with the PIP command on the cmd command line,



Example: Pip Install Pep8



3. Install SUBLIMELINTER-PEP8 or sublimelinter-pyflakes, corresponding to the PEP8 or Pyflakes installed above



After testing:






Installation is successful!



Python pep8 autofromat: Code formatting



Make the code more concise!



Shortcut CTRL + Shift + R, a good thing, and save the programmer's work.



Emmet: You can create HTML or CSS blocks of code with simple abbreviations.



!+table Auto Completion:








Sublime Text 3 builds a 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.