• SublimeREPL快捷键设置


    SublimeREPL 允许你在 Sublime Text 中运行各种语言(NodeJS , Python,Ruby, Scala 和 Haskell 等等)。所以对于程序员来说,这是很重要的一个插件。下面以python为例,来说明这个快捷键设置

    • 1、

    点击“preference” - “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"
    }
    }
    ]

    
    * 2、
    >点击<code>“preference” - “Key Bingings-User”</code>输入如下内容
    >```
     {
            "keys":
            ["f5"],
            "caption": "SublimeREPL: Python - RUN current file"
            ,
            "command": "run_existing_window_command"
            ,
            "args":
            {
                "id": "repl_python_run"
                ,
                "file": "config/Python/Main.sublime-menu"
            }
        },
        {
            "keys":
            ["f4"],
            "caption": "SublimeREPL: Python - IPython"
            ,
            "command": "run_existing_window_command"
            ,
            "args":
            {
                "id": "repl_python_ipython"
                ,
            "file": "config/Python/Main.sublime-menu"
            }
        },
    >```
    "f5"代表<code>SublimeREPL</code>菜单列表中的<code>Python-RUN current file</code>
    "f4"代表<code>SublimeREPL</code>菜单列表中的<code>Python</code>
    
    * 3、点击<code>“preference” - “Settings-User”</code>输入如下内容
    >```
    "default_extend_env":
    {
    	"PATH": "{PATH};C:\Python27"
    },
    
    • 设置到此也就完成了
  • 相关阅读:
    git的相关命令
    vue资料链接
    自定义小程序底部菜单
    物联网开发日记四:原理图2
    物联网开发日记三:原理图1
    物联网开发日记二:设计系统结构
    物联网开发日记一:准备工作
    mybatis不使用@Param有人报错有人却不报错问题
    最简单的js包装对象、ajax请求
    java文字转拼音、首字母缩写
  • 原文地址:https://www.cnblogs.com/ZhaoxiCheung/p/5746675.html
Copyright © 2020-2023  润新知