Sublime Text3配置SublimeREPL快捷键的方法(Python)
Python  /  管理员 发布于 8年前   263
sublime怎么用?Sublime Text3怎么配置SublimeREPL快捷键?下面就给大家介绍其修改方法,希望对需要的朋友有所帮助!

因为用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"} }]最后保存就行了。
如图

关于sublime 每次打开更新的提示
preferences->seting user -》{"font_size": 13,"update_check":false,}更多sublime相关技术文章,请访问sublime栏目.
以上就是Sublime Text3配置SublimeREPL快捷键的方法(Python)的详细内容,更多请关注其它相关文章!
test1 在
opencode + Oh-my-openagent,我的第一个免费的ai编程智能体管家:Sisyphus中评论 test..122 在
学历:一种延缓就业设计,生活需求下的权衡之选中评论 工作几年后,报名考研了,到现在还没认真学习备考,迷茫中。作为一名北漂互联网打工人..Zita 在
Google AI Studio升级全栈 vibe coding体验,可直接构建带登录和数据库的应用中评论 111222..123 在
Clash for Windows作者删库跑路了,github已404中评论 按理说只要你在国内,所有的流量进出都在监控范围内,不管你怎么隐藏也没用,想搞你分..原梓番博客 在
在Laravel框架中使用模型Model分表最简单的方法中评论 好久好久都没看友情链接申请了,今天刚看,已经添加。..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号
