Sublime Text3配置SublimeREPL快速鍵的方法(Python)

藏色散人
發布: 2019-12-28 11:55:15
轉載
6455 人瀏覽過

sublime怎麼用? Sublime Text3怎麼設定SublimeREPL快速鍵?以下就跟大家介紹其修改方法,希望對需要的朋友有幫助!

Sublime Text3配置SublimeREPL快速鍵的方法(Python)

因為用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"
        }
    }
]
登入後複製

吧中找到你所需要的指令來複製。

貼到Preferences-->Key Bindings User

程式碼如下

[
    {
            "keys": ["f5"],//这是自己设的快捷键
       “” 
            "command": "run_existing_window_command", 
            "args":
            {
                "id": "repl_python_run",
                "file": "config/Python/Main.sublime-menu"
            }
    }
]
登入後複製

最後儲存就行了。

如圖

Sublime Text3配置SublimeREPL快速鍵的方法(Python)

 關於sublime 每次開啟更新的提示

preferences->seting user -》
{
"font_size": 13,
"update_check":false,
}
登入後複製

更多sublime相關技術文章,請造訪 sublime欄.

以上是Sublime Text3配置SublimeREPL快速鍵的方法(Python)的詳細內容。更多資訊請關注PHP中文網其他相關文章!

相關標籤:
來源:csdn.net
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!