sublime text3 怎么配置、运行python_Sublime Text3配置SublimeREPL快捷键的方法(Python)...

sublime怎么用?Sublime Text3怎么配置SublimeREPL快捷键?下面就给大家介绍其修改方法,希望对需要的朋友有所帮助!

5e06d216c771b555.jpg

因为用sublime运行python,如果有input()函数,ctrl+b是不能输入数据的,所以下载安装了sublimeREPL进行调试。

但是sublimeREPL没有自定义快捷键,所以只有自己设置。

网上很多方法但是都没有效果,最后折腾了一晚上终于找到正确方式。

首先找到sublimerepl的配置文件。

步骤:Preferences-->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"

}

}

]

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

粘贴到Preferences-->Key Bindings User

代码如下[

{

"keys": ["f5"],//这是自己设的快捷键

“”

"command": "run_existing_window_command",

"args":

{

"id": "repl_python_run",

"file": "config/Python/Main.sublime-menu"

}

}

]

最后保存就行了。

如图

1577505124595534.png

关于sublime 每次打开更新的提示preferences->seting user -》

{

"font_size": 13,

"update_check":false,

}

更多sublime相关技术文章,请访问sublime栏目.

以上就是Sublime Text3配置SublimeREPL快捷键的方法(Python)的详细内容,更多请关注php中文网其它相关文章!

article_wechat2021.jpg?1111

本文转载于:csdn,如有侵犯,请联系a@php.cn删除

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值