Kudos
Collect
Twiiter
Facebook
Share
개발의 'ㄱ'자라도 아는 날을 기대하며...

[Mac] How to register a shortcut key for “Python - Run current file” on Sublime text 3

Last updated over 4 years ago
1 0 0 0

The last post was on Sublime3 How to install package control on Sublime text. Here’s another tip which you can reigster shortcut key to see Python ouput.

Here’s how to regiser shortcut key for Python - Run current file menu.

FYI, this post uses ‘Sublime Text Version 3.2.1, Build 3207’

1. Open ‘Key Binding’ Setting Window

Go Preferences and select Key Binding.

Go Preferences and select Key Binding
Go Preferences and select Key Binding

2. Register Shortcut Key

When Key Binding runs, there are two windows opened for Default and User. You can register your preferred shortcut key in User window.

Input the follwoing codes to register a shortcut key for Python - Run current file and save. I put command+option+b.

{ "keys": ["super+alt+b"], "command": "run_existing_window_command", "args":
    { 
        "id": "repl_python_run",
        "file": "config/Python/Main.sublime-menu"
    }
}

If you want to change your shortcut key, I recommend to check Default window first to see if your prefered key is already existed.

Reference

안녕하세요?^^ 개발자라는 소리를 듣고 싶어 늦은 나이에 개발의 세계에 몸담게 된 Brad 라고 합니다. 아직 개발의 'ㄱ' 자도 모르지만, 개발을 배우면서 알게되는 것들을 림프에 정리해보려고 합니다. 저의 부족한 글이 누군가에게 조금이나마 도움이 되길 바랍니다.

Related Articles
Essedrop - Make your file online instantly
 

Responses

Leave a response to @brad

Please sign in to comment.
Markdown is also available in comment.