Python第二天:sublime text 3 的運行快速鍵設定為F5

來源:互聯網
上載者:User

標籤:com   sublime   json格式   appdata   格式   ring   key   觀察   顯示   

  1. 開啟C:\Users\xxx(your name)\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\config\Python,根據自己的情況調整具體路徑。AppData可能是隱藏檔案夾,要先設定隱藏檔案夾可見才找得到。開啟Main.sublime-menu,看到裡面也是json格式的。觀察一下就發現這對應的剛好就是tools->sublimeREPL->python->下的幾個選項。caption對應的就是顯示的名字。

  2. 開啟剛剛提到的preferences->Key Binding-User,寫入以下內容

 
[    { "keys": ["f5"], "caption": "SublimeREPL:Python",                       "command": "run_existing_window_command", "args":                      {                           "id": "repl_python_run",                           "file": "config/Python/Main.sublime-menu"                      }     },]

可以看出就是調用了id是repl_python_run的現有的視窗命令。repl_python_run是和前面Main.sublime-menu裡的內容相對應,就是tools->sublimeREPL->python->python run current file的id

這樣,就完成了Sublime Text3類似IDLE按F5鍵在可互動環境下運行python檔案的配置

Python第二天:sublime text 3 的運行快速鍵設定為F5

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.