Sublime 3 Installation (Python Development plugin installation)
1, download Sublime3
Https://www.sublimetext.com/3
Download to get a "Sublime Text Build 3143 x64 Setup" file
2, fill in the registration code
Baidu a registration code
Help, enter License fill in the registration code in the popup window.
3, install the plugin
3.1. Install the package control plugin
View-and Show Consol Open the Sublime text console and paste the following code into the console.
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 ())
If you see the package control item in Perferences->package settings, the installation is successful.
3.2. Install plug-ins via the package control
3.2.1 Viewing installed Plugins
(1) View installed plugins use CTRL + Shift + p to bring up the command panel
(2) Enter "package", in the drop-down list to find "package control:list packages", select and enter, all the plug-ins will be displayed.
3.2.2 Installing plugins
(1) View installed plugins use CTRL + Shift + p to bring up the command panel
(2) Enter "Install", in the drop-down list to find "package Control:install package", select and enter, all the plug-ins will be displayed.
(3) Installation Sublimecodeintel: auto-complete + Member/method
After the installation is complete, you can see the installed plugins through "Preferences>>package Settings"
(4) Install Sidebarenhancements: Displays the directory structure.
(5) Installation Pylinter:python Basic theme
(6) Install Sublimetmpl: New file Template plugin, can support multiple languages such as Python, PHP, etc.
(7) Terminal: Opens a command window for various command operations
(8) Sublimerepl: Directly run the current file, can be easily debugged, and terminal can be combined with
(9) Bracket highlighter: bracket matching and highlighting
(sublimelinter): Code PEP8 format Check
4. Run the Python file
Opens a a.py file. The shortcut key ctrl+b is ready to run, and the result will appear below the current window.
4.1 Running Python files via Sublimerepl
Tools->sublimerepl->python->python run current file, this time just like idle, will pop up a new window to display the results of the operation.
4.2 Setting shortcut keys
We open Preferences->key Binding-default can see the original shortcut key settings, is in JSON format.
You can override the default setting by opening Preferences->key Binding-user, overriding the related properties of the shortcut keys you need to set in the format above.
(1) Open C:\Users\xxx (your name) \appdata\roaming\sublime Text 3\packages\sublimerepl\config\python, adjust the specific path according to your own situation. AppData may be a hidden folder, you need to set the hidden folder to be visible before you can find it. Open Main.sublime-menu, see inside is also JSON format. Look at it and find that it corresponds to just a few options under tools->sublimerepl->python->. The caption corresponds to the displayed name.
(2) Open the Preferences->key Binding-user just mentioned and write the following:
[
{"Keys": ["F5"], "caption": "Sublimerepl:python",
"Command": "Run_existing_window_command", "args":
{
"id": "Repl_python_run",
"File": "Config/python/main.sublime-menu"
}
}
]
As you can see, the existing window command that called the ID is repl_python_run. Repl_python_run is relative to the contents of the previous Main.sublime-menu, which is the ID of the Tools->sublimerepl->python->python run current file.
This completes the configuration of the sublime Text3 similar to the idle press F5 key to run the Python file in an interactive environment.
Sublime 3 Installation (Python Development plugin installation)