zoukankan      html  css  js  c++  java
  • 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"
    },
    
    • 设置到此也就完成了
  • 相关阅读:
    由"跨域"引出的一个终极思想(jsonp)
    SQLAlchemy 使用教程
    rbac-基于角色的权限控制系统(8种常用场景再现)
    Django中间件 (middleware)
    tcp粘包问题原因及解决办法
    细说【json&pickle】dumps,loads,dump,load的区别
    python面向对象--快速入门
    python三大器(装饰器/生成器/迭代器)
    django神器 <自定义过滤器filter 和 标签tag>
    python 基础数据类型汇总
  • 原文地址:https://www.cnblogs.com/ZhaoxiCheung/p/5746675.html
Copyright © 2011-2022 走看看