When I do something like
while True:
print(\'loop\')
and execute that code in sublime I am not able to stop it. I have to manually kill
Just follow this in case you are using Sublime Text 3, go to Preferences > Package Settings > Alignment > Key Bindings-User
[
{ "keys": ["ctrl+n"], "command": "cancel_build" }
]
Now, by pressing ctrl+n, the execution will immediately stop. Of course, you can change the combination to whatever you want (In place of ctrl+n).