Configure sublime text 3 using python and sublimepython

Source: Internet
Author: User

Configure sublime text 3 using python and sublimepython

1. Download it on the official website of sublime text. It is a suitable version for your system. Address: https://www.sublimetext.com/3

2. After installation, open Preferences ---> Settings in the menu bar (this is the latest version when this is written)

3. Open these two files: Preferences. sublime-settings -- Default and Preferences. sublime-settings -- User.

The User file is edited.

4. write such a piece of configuration information/code in the braces of the file and save it:

 1 // Settings in here override those in "Default/Preferences.sublime-settings", 2 // and are overridden in turn by syntax-specific settings. 3 { 4  5     "python":{ 6         "Python":"D:/Python27/python.exe", 7         "pythonExtraPaths": 8         [ 9             "D:/Python27",10             "D:/Python27/DLLS",11             "D:/Python27/Lib",12             "D:/Python27/Lib/site_packages"13         ]14     },15     16 }

5. After the configuration is complete, run Ctrl-B. However, if no output information is found, the following configuration is required.

File ---> New File: Create a New File and save it as Python. sublime-build (Python can also write other ideas, such as My_Python)

You also need to write a piece of configuration information/code in it to save:

1 {2     "shell_cmd": "d:/python27/python.exe -u \"$file\"",3     "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",4     "selector": "source.python",5     "encoding":"cp936"6 }

6. Execute Ctrl-B again to check whether the system can run normally and see the output (provided that you have to have the output)

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.