Sublime Text3配置SublimeREPL快捷键的方法(Python)


本文摘自PHP中文网,作者藏色散人,侵删。

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

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

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

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

首先找到sublimerepl的配置文件。

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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

[

    {

        "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的配置文件,找到你需要的命令复制下来。

阅读剩余部分

相关阅读 >>

如何用sublime text创建第一个文档

sublime text的常见功能介绍

sublime中如何一键使用浏览器打开php文件

sublime text3中不能运行python中input()怎么办

sublime text3 六种 查找&替换 方法

sublime unregistered未注册是什么情况?怎么解决?

解决sublime中文光标跟随问题

sublime text 3的快捷键汇总

sublime怎么运行html代码?sublime运行的快捷键是什么

sublime的纵向操作(列操作)

更多相关阅读请进入《sublime》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...