Stop infinite loops in Atom


Is there a build in shortcut in Atom that cancels a running application? For example if I type this code
//do something
and run it, would I be able to stop it with a friendler method than the task manager?


There is not because Atom does not have any capability to execute code. That would be on the makers of individual code-running packages.