介绍
小编给大家分享一下崇高Text3如何配置SublimeREPL快捷键,希望大家阅读完这篇文章之后都有所收获、下面让我们一起去探讨吧!
因为用崇高运行python,如果有输入()函数,按ctrl + b是不能输入数据的,所以下载安装了SublimeREPL进行调试。
但是SublimeREPL没有自定义快捷键,所以只有自己设置。
网上很多方法但是都没有效果,最后折腾了一晚上终于找到正确方式。
首先找到SublimeREPL的配置文件。
步骤:偏好,在浏览包——祝辞SublimeREPL文件夹,在配置文件夹,在python文件夹,祝辞Default.sublime-commands(以文本格式打开)
( ,,,{ ,,,,,,,“caption":,“SublimeREPL:, Python" ,,,,,,,“command":,“run_existing_window_command",,“args": ,,,,,,,{ ,,,,,,,,,,,“id":,“repl_python" ,,,,,,,,,,,“file":,“配置/Python/Main.sublime-menu" ,,,,,,,} ,,,}, ,,,{ ,,,,,,,“caption":,“SublimeREPL:, Python 作用;PDB current file" ,,,,,,,“command":,“run_existing_window_command",,“args": ,,,,,,,{ ,,,,,,,,,,,“id":,“repl_python_pdb" ,,,,,,,,,,,“file":,“配置/Python/Main.sublime-menu" ,,,,,,,} ,,,}, ,,,{ ,,,,,,,“caption":,“SublimeREPL:, Python 作用;RUN current file" ,,,,,,,“command":,“run_existing_window_command",,“args": ,,,,,,,{ ,,,,,,,,,,,“id":,“repl_python_run" ,,,,,,,,,,,“file":,“配置/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":,“配置/Python/Main.sublime-menu" ,,,,,,,} ,,,} )
这是repl的配置文件,找到你需要的命令复制下来。
粘贴到偏好——祝辞键绑定用户
代码如下
( ,,,{ ,,,,,,,,,,,“keys":, (“f5")//这是自己设的快捷键 "" ,,,,,,,,,,,“command":,“run_existing_window_command",, ,,,,,,,,,,,“args": ,,,,,,,,,,,{ ,,,,,,,,,,,,,,,“id":,“repl_python_run" ,,,,,,,,,,,,,,,“file":,“配置/Python/Main.sublime-menu" ,,,,,,,,,,,} ,,,} )
最后保存就行了。
如图
关于崇高每次打开更新的提示
首选项→seting user -》 { “font_size": 13日 “update_check":假的, }
看完了这篇文章,相信你对“崇高Text3如何配置SublimeREPL快捷键”有了一定的了解,如果想了解更多相关知识,欢迎关注行业资讯频道,感谢各位的阅读!