Sublime text 3 is configured using the python operation method, sublimepython

Source: Internet
Author: User

Sublime text 3 is configured using the python operation method, sublimepython

1,Download it from 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,After opening the file, we will see 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 then save:

// Settings in here override those in "Default/Preferences.sublime-settings",// and are overridden in turn by syntax-specific settings.{  "python":{    "Python":"D:/Python27/python.exe",    "pythonExtraPaths":    [      "D:/Python27",      "D:/Python27/DLLS",      "D:/Python27/Lib",      "D:/Python27/Lib/site_packages"    ]  },  }

5,After the configuration is complete, execute Ctrl-B. However, if no output information is found, you need the following configuration.

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:

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

6,Run Ctrl-B again to check whether the task runs properly and the output is displayed (if you have to have the output)

The above sublime text 3 configuration using python is a small part of the Content shared to everyone, I hope to give you a reference, but also hope you can support a lot of help home.

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.