Sublime text of Python

Source: Internet
Author: User
Tags sublime text

1, install the plug-in:

Ctrl+shift+p, install package, plug-in name

2. Run the python file directly:

Ctrl+b

3. Sublime Text installation python: (Link: https://www.zhihu.com/question/22904994/answer/87527103)

1. Install the package control:

View->show Console

1 Import ' Package Control.sublime-package ' ' WB ' ' http://sublime.wbond.net/ ' + pf.replace (','%20'). Read ())
View Code

(You may be prompted to restart Sublimetext)

Confirm that the Preferences menu has a package settings and a package control two menu;

1 ImportUrllib2,os; pf='Package Control.sublime-package'; IPP = Sublime.installed_packages_path (); Os.makedirs (IPP)if  notOs.path.exists (IPP)ElseNone; Urllib2.install_opener (Urllib2.build_opener (urllib2. Proxyhandler ())); Open (Os.path.join (IPP, PF),'WB'). Write (Urllib2.urlopen ('http://sublime.wbond.net/'+pf.replace (' ','%20'). read ());Print('Restart Sublime Text to finish installation')
View Code

2, installation Sublimerepl:

Ctrl+shift+p

Install packages

Sublimerepl

Confirm Tools->sublimerepl->python

3. Shortcut key setting F1:

Preferences->key Bindings-user

1[{"Keys":["F1"],2 "caption":"sublimerepl:python-run Current File",3 "Command":"Run_existing_window_command","args":4{"ID":"Repl_python_run","file":"Config/python/main.sublime-menu"}5}]
View Code

Ctrl+s

The F1 can then be executed directly.

Sublime text of Python

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.