Installation phase:
- Installation of Sublime Text3:
- Download URL: https://www.sublimetext.com/
- When the download is complete, click Install.
- Install the package Control:
- Click Tools, install package Control
- Install Anaconda:
- Ctrl+shift+p, enter install package, input anaconda, enter
- Install SUBLIMEREPL:
- Ctrl+shift+p, enter install package, input SUBLIMEREPL, enter
- Install Djaneiro:
- Ctrl+shift+p, enter install package, input Djaneiro, enter
Configuration phase:
- Configuration SUBLIMEREPL:
Preferences, browse Packages, sublimerepl, config, python, open main.sublime-menu, find /c0>
{"Command": "Repl_open", "caption": "Python-run Current File", "id": "Repl_python_run", "mnemonic": "R", "args": { "type": "Subprocess", "encoding": "UTF8", "cmd": ["Python", "-U", "-I", "$file _basename"], "CWD": "$file _path", "Syntax": "Packages/python/python.tmlanguage", "external_id": "Python", "Extend_env": {"pythonioencoding": "Utf-8"} } ,
Modify the "cmd" entry in it.
-
- Custom Sublimerepl shortcut keys
Preferences, browse package, Sublimerepl, config, python, open default.sublime-commands
{ "caption": "Sublimerepl:python-run Current File", "command": "Run_existing_window_command", "args": { " ID": "Repl_python_run", " file": "Config/python/main.sublime-menu" } },
and copy to Preferences, key Bindings, and add the shortcut keys you want to set in your code, as follows:
{" keys": ["SHIFT+F10"], //Modify the contents of square brackets, custom shortcut "caption": "Sublimerepl:python-run Current File", " Command ":" Run_existing_window_command "," args ": { " id ":" Repl_python_run ", " file ":" config/python/ Main.sublime-menu " } },
Sublime Text3 Configuring the Python Development Environment (Windows edition)