Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut to end process for chrome tab [closed]

Coding in JS, sometimes I goof up & creates an infinite loop. Other times, I hit a debugger inside a loop & I can't refresh quickly because the code has to finish running before the refresh occurs. Whatever the case, it is often times faster to crash the tab & then refresh.

  • navigating to chrome://crash or chrome://kill doesn't work if a long-running process is executing, although it does work if I'm stuck at debugger
  • clicking Window > Task Manager > Select tab > End Process & then refreshing takes too long.
  • The extensions I've found no longer work (https://github.com/funroll/jollyroger,http://www.bitfalls.com/2013/09/build-chrome-extension-killing-chrome.html)

How can I achieve a keyboard shortcut to crash & refresh the current tab? native, 3rd party extensions, apps for OSX are fair game. Chrome version 44.

like image 916
Matt K Avatar asked Aug 04 '15 02:08

Matt K


People also ask

Is there a shortcut to close a tab Chrome?

On Windows & Linux, press Ctrl + w. On a Mac, press ⌘ + w.

How do I close Google Chrome with keyboard?

Quit Google Chrome.Mac: Hold Command and press Q. Windows PC & Linux: Hold Ctrl and Shift and press Q.

What is the shortcut to close a closed tab?

On your keyboard, you can hit Command+Shift+T (on Mac) or Ctrl+Shift+T (on Windows). Doing this once will bring up your most recently closed tab, doing so again will bring back the penultimate one and so on. Alternatively, you can right click on the tab menu bar area and select reopen closed tab.


1 Answers

A bit of an expansion on the previous answer:

Use System Preferences to link a keyboard shortcut to the "Task Manager" menu command (System Preferences > Keyboard > Shortcuts > App Shortcuts), since the Shift + Esc shortcut doesn't apply to Macs (at least not as of writing this post).

After that, you can use that keyboard shortcut in Chrome to pull up the Task Manager, where you can choose the unresponsive tab and select End Process.

like image 140
aaplmath Avatar answered Sep 19 '22 14:09

aaplmath