-
Open C:\Users\xxx (your name) \appdata\roaming\sublime Text 3\packages\sublimerepl\config\python, and adjust the specific path according to your situation. AppData may be a hidden folder, you need to set the hidden folder to be visible before you can find it. open Main.sublime-menu, see inside is also JSON format. Look at it and find that it corresponds to just a few options under tools->sublimerepl->python->. The caption corresponds to the displayed name.
-
Open the Preferences->key binding-user that you just mentioned and write the following:
[
{ "keys": ["f5"], "caption": "SublimeREPL:Python",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
]
As you can see, the existing window command that called the ID is repl_python_run. Repl_python_run is relative to the contents of the previous Main.sublime-menu, which is the ID of the Tools->sublimerepl->python->python run current file.
This completes the configuration of sublime Text3 similar to the idle press F5 key to run Python files in an interactive environment
Python the next day: Sublime text 3 run shortcut key set to F5