Sublime Text 中的SublimeREPL的绑定快捷键配置
2014-05-01 21:34
309 查看
直入正题:
因为在配置python的Sublime Text环境,所以以python为例说明。
“Preference...浏览插件...SublimeREPL文件夹...Configure文件夹...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"
}
}
]
这就分别对应着“工具...SublimeREPL...Python”下的几个命令。
接下来是Sublime Text的按键绑定用法,详情见按键绑定:“http://sublime-undocs-zh.readthedocs.org/en/latest/reference/key_bindings.html”
“Preference...按键绑定-用户”,全文内容如下:
[
{"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绑定repl_python_run,即运行当前文件。F6绑定IPython模式,就是command line模式。
但是自动换行似乎不太好用,dir(help),输出不换行的一行。。。点击80个字符串换行,它又连回车换行符都吞了。。。。。。
因为在配置python的Sublime Text环境,所以以python为例说明。
“Preference...浏览插件...SublimeREPL文件夹...Configure文件夹...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"
}
}
]
这就分别对应着“工具...SublimeREPL...Python”下的几个命令。
接下来是Sublime Text的按键绑定用法,详情见按键绑定:“http://sublime-undocs-zh.readthedocs.org/en/latest/reference/key_bindings.html”
“Preference...按键绑定-用户”,全文内容如下:
[
{"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绑定repl_python_run,即运行当前文件。F6绑定IPython模式,就是command line模式。
但是自动换行似乎不太好用,dir(help),输出不换行的一行。。。点击80个字符串换行,它又连回车换行符都吞了。。。。。。
相关文章推荐
- Sublime Text3快捷键绑定及SublimeREPL设置
- Sublime Text 为SublimeREPL绑定快捷键
- python Sublime Text3的使用基本配置操作&&SublimeREPL插件的安装及快捷键设置
- Sublime Text3配置SublimeREPL快捷键的方法(Python)
- Sublime Text3配置SublimeREPL快捷键的方法(Python)
- 优雅的使用sublime text 3(总结在sublime使用过程中的技巧)(sublime快捷键)(总结中...)
- sublime 格式化代码插件安装与快捷键配置
- SublimeREPL快捷键设置
- Sublime Text3 以及 SublimeREPL使用Virtualenv执行python
- 【sublime text】sublime text 快捷键绑定浏览器快速打开
- sublime text 3 快捷键大全以及配置编译环境
- sublime text 3 快捷键大全以及配置编译环境
- sublime text3 绑定快捷键
- Sublime Text3 快捷键汇总及设置快捷键配置环境变量
- Sublime Text 3安装与使用,安装插件,快捷键,默认配置
- sublime text 3 快捷键大全以及配置编译环境
- sublime插件emmet的配置、使用及快捷键Ctrl+E修改成Tab键操作
- 在sublime 中使用 自定义配置按键绑定模拟vim光标移动
- sublime 相关配置和快捷键
- sublime text 3 快捷键大全以及配置编译环境