Predecessors have said a lot, but they will still have a variety of problems, write a log record of this building experience.
1. Install Python, I use is python3.5, can be an officer net download
2. Install Sublime text 3, you can download the officer net
3. Install the plugin:
Package Control: First install this plug-in, more trouble, you can directly reader network description
1. Open the command line interface, using CTRL + ' shortcut keys or menu items View > Show Console
2.Sublime Text 3 Copy the following code
Import Urllib.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 '% (DH, h)) if DH install h else open (!= H.join (IPP, PF), ' WB '. Write (by)
3.Sublime Text 2 Copy the following code
Import Urllib2,os,hashlib; h = ' df21e130d211cfc94d9b0905775a7c0f ' + ' 1e3d39e33b79698005270310898eea76 '; 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 ())); by = Urllib2.urlopen (' http://packagecontrol.io/' + pf.replace (', '%20 ')). read (); DH = hashlib.sha256 (by). Hexdigest (); Open (Os.path.join (IPP, PF), ' WB '). Write (by) if DH = = = H else None; Print (' Error validating download (got%s instead of%s), please try manual install '% (DH, h) if DH!= h Else ' please rest Art Sublime Text to finish installation ')
New package Control option under the Preferences menu, successful installation
Topic: Colorsublime offers a number of topics that you can choose your favorite
sidebarenhancements: Extended sidebar function, essential
Ctrl+p searches for install in package control,
Then search for sidebarenhancements, click to install
Sublimecodeintel Code Auto-completion configuration
The authors mainly use Python, all with Python as an example. Other languages are the same. The use of Sublimecodeintel Plug-ins can be implemented to automatically prompt Python code, jump tracking custom functions, view system functions, and so on. The function is still quite powerful. Auto Prompt/complement Python code
Select Perference-package settings-sublimecodeintel-settings-user to copy the following configuration:
{
"Codeintel_language_settings": {
"Python3": {
"Python3": "E:/program Files/python/python.exe",
"Codeintel_scan_extra_dir": [
"E:/program Files/python/dlls",
"E:/program Files/python/lib",
"E:/program files/python/lib/site-packages",
"E:/program Files/python/lib/idlelib",
"E:/program files/python/",
"E:/program files/python/lib/*",
],
"Codeintel_scan_files_in_project": true,
"Codeintel_selected_catalogs": []
},
}
}
tracking functions, viewing system functions
Configure shortcut keys to make it with Eclipse, implement CTRL + LEFT mouse button tracking function, alt+left/right jump, alt+/automatic prompt code
Select Perference-package Settings-sublimecodeintel-key bindings-user
Automatic prompt code
{"Keys": ["alt+/"], "command": "Code_intel_auto_complete"},
//jump to function definition
{"keys": ["Alt+right"], "Command": "Goto_python_definition"},
//return to jump position
{"Keys": ["Alt+left"], "command": "Back_to_python_ Definition "}
1 2 3 4 5 6
Select Perference-package Settings-sublimecodeintel-mouse bindings-user
[
//ctrl+ left mouse button jump function
{"button": "Button1", "modifiers": ["Ctrl"], "command": "Goto_python_definition", "Press_ Command ":" Drag_select "}
]
Anaconda: Many features such as code hints, prerequisites and Sublimecodeintel functions overlap
Ctrl+p searches for install in package control,
Enter the installation interface, install and then enter Anaconda in the new Window command line and click on the first option to install.
Modify "Python_interpreter" in Settings-default: "E:/program files/python/python.exe",
Python_interpreter after the default installation location for Python, my Python installation directory in E:/program Files/python/python.exe, note to use the backslash
The Settings-user is configured as follows:
{
"Python_interpreter": "E:/python/python.exe",
"suppress_word_completions": true, //auto-complement code
" Suppress_explicit_completions ': true,// auto-complement exception
' complete_parameters ': true, //complement parameters
"Anaconda_linting": false, //white dot before line of code
}
After installation, if you cannot automatically fill the full module name, you can find sublime text GitHub homepage readme.md See Introduction
Find the sublime Text3 package directory, in the software preferences/browser packages inside. Then create a new folder in packages Python, inside a new completion rules.tmpreferences, pay attention to the space, and then edit the contents as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>scope</key>
<string>source.python</string>
<key>settings</key>
<dict>
<key>cancelCompletion</key>
<string>^(.*\b(and|or)$)|(\s*(pass|return|and|or|(class|def)\s*[a-zA-Z_0-9]+)$)</string>
</dict