让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" },
    ]
    
    
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。