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"
},
  • 设置到此也就完成了
posted @ 2016-08-07 17:17  zxzhang  阅读(1421)  评论(0编辑  收藏  举报