MacOS – Alternative to CTRL + C of macOS Terminal in Sublime Text 3

keyboardmacosshortcutsublimetextterminal

On macOS terminal ctrl+C terminates the program running. In Sublime Text, cmd+B runs a program such as Python, Ruby or such.

If I want to terminate a running code, what is the shortcut key in Sublime Text 3 equivalent of ctrl+C?

Best Answer

Open Key Bindings from Preferences of Sublime Text or short cut is (cmd ⌘ + ,) and add like:

[
    { "keys": ["ctrl+c"], "command": "cancel_build" },
]