美文网首页Python
Sublime Text3配置 Python REPL快捷键的方

Sublime Text3配置 Python REPL快捷键的方

作者: UNCLE_CHUCK | 来源:发表于2019-03-05 13:57 被阅读0次

首先找到sublimerepl的配置文件。

步骤:Preferences-->Browse Packages-->SublimeREPL文件夹-->config文件夹-->Python文件夹-->Default.sublime-commands(以文本格式打开)

复制代码 复制代码

这是repl的配置文件,找到你需要的命令复制下来。

粘贴到Preferences-->Key Bindings User

代码如下, 第一个是打开Python交互界面,第二个是Python运行当前的文件

[
{ "keys": ["ctrl+alt+b"],
"command": "run_existing_window_command",
"args":
{
"id": "repl_python",
"file": "config/Python/Main.sublime-menu"
}
},

{ "keys": ["ctrl+alt+r"],
"command": "run_existing_window_command",
"args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
}
]

相关文章

网友评论

    本文标题:Sublime Text3配置 Python REPL快捷键的方

    本文链接:https://www.haomeiwen.com/subject/wrgnuqtx.html