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.