zoukankan      html  css  js  c++  java
  • Sublime Text3配置SublimeREPL快捷键的方法(Python)

    因为用sublime运行python,如果有input()函数,ctrl+b是不能输入数据的,所以下载安装了sublimeREPL进行调试。

    但是sublimeREPL没有自定义快捷键,所以只有自己设置。

    网上很多方法但是都没有效果,最后折腾了一晚上终于找到正确方式。

    首先找到sublimerepl的配置文件。

    步骤:Preferences-->Browse Packages-->SublimeREPL文件夹-->config文件夹-->Python文件夹-->Default.sublime-commands(以文本格式打开)                                  

    复制代码
    [
        {
            "caption": "SublimeREPL: Python",
            "command": "run_existing_window_command", "args":
            {
                "id": "repl_python",
                "file": "config/Python/Main.sublime-menu"
            }
        },
        {
            "caption": "SublimeREPL: Python - PDB current file",
            "command": "run_existing_window_command", "args":
            {
                "id": "repl_python_pdb",
                "file": "config/Python/Main.sublime-menu"
            }
        },
        {
            "caption": "SublimeREPL: Python - RUN current file",
            "command": "run_existing_window_command", "args":
            {
                "id": "repl_python_run",
                "file": "config/Python/Main.sublime-menu"
            }
        },
        {
            "command": "python_virtualenv_repl",
            "caption": "SublimeREPL: Python - virtualenv"
        },
        {
            "caption": "SublimeREPL: Python - IPython",
            "command": "run_existing_window_command", "args":
            {
                "id": "repl_python_ipython",
                "file": "config/Python/Main.sublime-menu"
            }
        }
    ]
    复制代码

    这是repl的配置文件,找到你需要的命令复制下来。

    粘贴到Preferences-->Key Bindings User

    代码如下

    复制代码
    [
        {
                "keys": ["f5"],//这是自己设的快捷键
           “” 
    "command": "run_existing_window_command", "args": { "id": "repl_python_run", "file": "config/Python/Main.sublime-menu" } } ]
    复制代码

    最后保存就行了。

    如图

     关于sublime 每次打开更新的提示

    preferences->seting user -》

    {
    "font_size": 13,
    "update_check":false,
    }

  • 相关阅读:
    netty内存泄漏
    Java并发编程:CountDownLatch、CyclicBarrier和Semaphore
    java 容器结构
    c3p0 一个数据库链接的例子
    eclipse java MemoryAnalyzer 查询内存泄漏 环境配置
    Java中数据库连接的一些方法资料汇总
    java io流
    MySQL的几个概念:主键,外键,索引,唯一索引
    mysql 一些常用指令
    mysql only_full_group_by问题
  • 原文地址:https://www.cnblogs.com/jpfss/p/10214200.html
Copyright © 2011-2022 走看看