sublime text 3 build python ide

refer to:

https://www.zhihu.com/question/22904994

http://www.cnblogs.com/luoshupeng/archive/2013/09/09/3310777.html

illustrate:

Environment: win10

Software: sublime text3

 

1. Open Sublime text 3 and install package control

Use the Ctrl+` shortcut or open the command line through the View->Show Console menu, and 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(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

If all goes well, you can now see the Package Settings and Package Control menus under the Preferences menu.

2. Install SublimeREPL

Ctrl+shift+p Type install packages

After a while, type SublimeREPL to install

You can see the effect through the option Tools->SublimeREPL->Python

3. Key binding:

Of course, it is cumbersome to go through Tools->SublimeREPL->Python every time

After binding such an operation to a key such as F1, it will be much more convenient.

For example, open 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 works just fine.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325164224&siteId=291194637