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 @   zxzhang  阅读(1431)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
点击右上角即可分享
微信分享提示