Configuration of Sublime-Text3 Python Environment
01. Preface
This article mainly introduces how to configure the Python development environment on Windows 10 based on the installation and use of Sublime-Text3 . Writing Python code with Sublime-Text is a very good choice.
02. Re-introduction to installation
1. ctrl+shift+p shortcut key to bring up the command panel;
2. Enter install to bring up the Install Package option and press Enter;
3. Select or enter the name of the plugin you need to install in the list
03. Configuration of the Python environment
1. Use 02. Re-introduction steps for installation, the name of the plugin to be installed is: Anaconda (code prompt plugin), the installation is completed as shown in the figure:
2. After the installation is completed, you can go through [Preference] >> [Package Settings] >> [ Anaconda] >> [Setting User] View installed plugins, configure
{
"python_interpreter":"C:\\Development\\Python\\Anaconda3\\python.exe",
"suppress_word_completions":true,
"suppress_explicit_completions":true,
"complete_parameters":true,
"anaconda_linting": false
}
After the configuration is complete, there will be a code prompt function.
3. Continue to install a plugin SublimeTmpl, the installation method is the same as above, this is to allow us to quickly mail python files.
Configuration: [Preference] >> [Package Settings] >> [SublimeTmpl] >> [Setting User]
{
"disable_keymap_actions": false, // "all"; "html,css"
"date_format" : "%Y-%m-%d %H:%M:%S",
"attr": {
"author": "JackPI",
"email": "1129501586@qq.com",
"link": "https://blog.csdn.net/meiqi0538"
}
}
Then configure the shortcut keys: [Preference] >> [Package Settings] >> [SublimeTmpl] >> [Key Bindings-Default] to modify the shortcut
{
"caption": "Tmpl: Create python", "command": "sublime_tmpl",
"keys": ["ctrl+alt+p"], "args": {"type": "python"} ,"context": [{"key": "sublime_tmpl.python"}]
}
The basic environment has been configured here. At this time, we need to remember to default the document to python format: [View] >> [Syntax] >> [Python]