Reference:
https://www.zhihu.com/question/22904994
Http://www.cnblogs.com/luoshupeng/archive/2013/09/09/3310777.html
Description
Environment: WIN10
Software: Sublime Text3
1. Open Sublime Text 3 to install the package control
To use CTRL + ' shortcut keys or open the command line from the View->show console menu, paste the following code:
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 ). Write (Urllib.request.urlopen (' http://sublime.wbond.net/' + pf.replace ("'%20 '
If it goes well, you can now see the package settings and the package control two menus under the Preferences menu.
2, Installation Sublimerepl
Ctrl+shift+p Type Install Packages
Wait a moment and then type SUBLIMEREPL to install
With the option Tools->sublimerepl->python, you can see the effect.
3. Keying binding:
Of course, every time through Tools->sublimerepl->python this way is more cumbersome
It will be much easier to bind such an operation to a key like F1.
e.g. open the Preferences->key bindings-user and copy the code:
{"Keys": ["F1"],
"caption": "Sublimerepl:python",
"Command": "Run_existing_window_command", "args":
{"id": "Repl_python",
"File": "Config/python/main.sublime-menu"}}
Then, Ctrl + S is good.
Sublime Text 3 building Python IDE