Sublime Text 3 Configuration Python3 development environment

Source: Internet
Author: User
Tags save file sublime text

First lead me to the path of Python, I am a computer technology enthusiasts, to build their own code to write the tool is a very enjoyable thing, recommended with Sublime Text 3, about ST3 find degrees Niang most understand.

1. Download

Website address: HTTP://WWW.SUBLIMETEXT.COM/3

2.Windows 10 Installation Configuration Python environment

1) Installation Note Tick Add to Explorer context menu, add right-click with ST3 Open edit.

2) Sublime Text 3 version3.0,build3143 Activation Code:

-–begin license-–twitterinc User LICENSE ea7e-890007 1d77f72e 390cdd93 4dcba022 FAF60790 61aa12c0 a37081c5 D0316412 4584d136 94d7f7d4 95bc8c1c 527da828 560bb037 d1eddd8c ae7b379f 50c9d69d b35179ef 2fe898c4 8E4277A8 555CE714 E1FB0E43 D5D5 2613 c3d12e98 bc49967f 7652eed2 9d2d2e61 67610860 6d338b72 5cf95c69 e36b85cc 84991f19 7575D828 470a92ab--end license--
Activation Code

3) Install the package control to manage the module plugin, CTRL + ' Bring up the ST3 console to copy the following code to enter:

Import Urllib.request,os,hashlib; h = ' 7183a2d3e96f11eeadd761d777e62404 ' + ' e330c659d4bb41d3bdf022e94cab3cd0 '; 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)) if DH! = H Else Open (Os.pat H.join (IPP, PF), ' WB '). Write (by)

If you see the package Control item in preferences, the installation is successful

Some of the Python plugins are installed below:

Press Ctrl+shift+p to bring up the panel for the package control, enter the PCIP (control:install) Install plugin

3.1)Boxy Theme theme, this is my personal favorite theme

Configure ST3 Global:

{"Auto_find_in_selection": True, "Bold_folder_labels": True, "Font_face": "Monaco", "font_size": +, "theme": "Boxy Solarized dark.sublime-theme "," Color_scheme ":" Packages/boxy theme/schemes/boxy solarized Dark.tmTheme "," Default_ Line_ending ":" Unix "," Dpi_scale ": 1.0," Draw_minimap_border ": True," Ensure_newline_at_eof_on_save ": true," fade_fold _buttons ": false," Highlight_line ": True," Highlight_modified_tabs ": True," ignored_packages ": [" Vintage "]," save_on_ Focus_lost ": True," Trim_automatic_white_space ": True," Trim_trailing_white_space_on_save ": True," Update_check ": False, "Word_wrap": "True"}
Preferences.sublime-settings--user

3.2)Sublimecodeintel plugin, code automatic hint

Configuration (path to write your own)

{"Python": {"Python": "C:/users/huangpihu/appdata/local/programs/python/python36/python.exe", "pythonextrapaths": ["C:/users/huangpihu/appdata/local/programs/python/python36", "C:/users/huangpihu/appdata/local/programs/python /python36/dlls "," C:/users/huangpihu/appdata/local/programs/python/python36/lib "," C:/Users/HuangPiHu/AppData/ Local/programs/python/python36/lib/site-packages ",]}}
sublimecodeintel.sublime-settings

3.3)pylinter plugin, Python syntax checker

Configuration

{//python path "Python_path": [        "C:/users/huangpihu/appdata/local/programs/python/python36/python.exe"        ],    //install pylint-1.7.2 absolute path    "Pylint_path": "c:/users/huangpihu/appdata/local/programs/python/python36/lib/ site-packages/pylint/lint.py ",    //Ignore" R "," C "hint    " ignore ": [" R "," C "],}
pylinter.sublime-settings

3.4)sidebarenhancements plug-in, extended side, no configuration required, but it's worth noting that ST3 Open (project) folder is useful

3.5)Sublimetmpl plugin, new preset python template file, shortcut key: ctrl+alt+shift+p

Configuration

{"Disable_keymap_actions": false,//"all"; "Html,css"    "Date_format": "%y-%m-%d%h:%m:%s",    "attr": {        "author": "Leopython",        "email": "[email Protected] ",        " link ":" Http://www.cnblogs.com/leopython/"    }}
sublimetmpl.sublime-settings

3.6) Sublimerepl plug-in, because ctrl+b run Python file can not be entered (version of the problem, I do not tangle), so install this plugin, you can solve, there is a benefit is to split screen debugging, to preserve the results.

Preferences->browse packages->sublimerepl->config->python->default.sublime-commands Configuration:

[{"caption": "Sublimerepl:python", "command": "Run_existing_window_command", "args": { "id": "Repl_python", "File": "Config/python/main.sublime-menu"}}, {"caption": "Sublim erepl:python-pdb current File "," command ":" Run_existing_window_command "," args ": {" id ":" Rep L_python_pdb "," File ":" Config/python/main.sublime-menu "}}, {" caption ":" Sublimerepl:py Thon-run current File "," command ":" Run_existing_window_command "," args ": {" id ":" Repl_python_         Run "," File ":" Config/python/main.sublime-menu "}}, {" command ":" Python_virtualenv_repl ",        "caption": "Sublimerepl:python-virtualenv"}, {"caption": "Sublimerepl:python-ipython", "Command": "Run_existing_window_command", "args": {"id": "Repl_python_ipython", "File": "Co Nfig/python/main.sublime-menu "}}] 
Default.sublime-commands

[    //sublimerepl shortcut key    {"Keys": ["F5"], "command": "Run_existing_window_command", "args":        {            "id": "repl _python_run ",       " file ":" Config/python/main.sublime-menu "   }},]

  

3.7)Anaconda plugin, Python Ultimate plugin, configured as follows

{    //ignore various whitespace, more than 80 words, import function does not use the reminder,    "Pep8_ignore": ["E501", "W292", "E303", "W391", "E225", "E302", "W293", "E402"],    "Pyflakes_explicit_ignore":    [        "Unusedimport"    ],    //Save file automatically pep8 formatted    "Auto_ Formatting ": True,    //Hint for library function    " Enable_signatures_tooltip ": True,    " Merge_signatures_and_doc ": true,    "anaconda_linting": false,}
anaconda.sublime-settings

3.8)Python PEP8 Autoformat code format corrections.

Shortcut key Ctrl+shift+r.

3.9)Terminal Bring up the Windows console for a variety of command operations.

Terminal.sublime-settings:

{"Terminal": "C:\\windows\\system32\\cmd.exe", "Parameters": ["/start", "%cwd%"]}

The above plug-in configuration is basically enough for my personal use, only for learning reference.

  

Sublime Text 3 Configuration Python3 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.