Python the next day: Sublime text 3 run shortcut key set to F5

Source: Internet
Author: User
Tags sublime text


    1. 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.

    2. 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


Related Article

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.