让sublime支持带input()的python程序运行

让sublime支持带input()的python程序运行

看了很多教程,都不全,补全一下。
主要参考: https://www.jianshu.com/p/dd36e4af2b82

  1. ctrl+shift+p,调出包管理器:输入install package

  2. 输入sublimeREPL,点击安装

  3. 运行:

    • 点击tool,找到sublimeREPL,然后选择Python - RUN current file

    • 设置快捷键:

      • ctrl+shift+p——install package——安装ChainOfCommand
      • preferences->Key Binding-User中插入代码
    [
        {
            "keys":["f5"],
            "caption":"SublimeREPL: save & Python - RUN current file",
            "command":"chain",
            "args":
            {"commands":[
             ["save"],
             [ "run_existing_window_command",{"id": "repl_python_run","file": "config/Python/Main.sublime-menu"}]
                ]
            }
        },
     { "keys": ["ctrl+n"], "command": "cancel_build" },
    ]
    
    

你可能感兴趣的:(让sublime支持带input()的python程序运行)