Running Chrome Dev Tools Snippet From Keyboard

How do I run Chrome Dev Tools snippets from the keyboard or assign them to shortcut keys?

I'm finding snippets really useful for automating small tasks with javascript and I'd like to trigger them from the keyboard for extra speed. Any idea how?

3

1 Answer

The key sequence mentioned in the comment above using the ! did not work for me.

Here's what works for me in Chrome 81:

  • Ctrl+O
  • Type name of snippet
  • Enter -> Jumps to the snippet. Cursor is now inside its code area
  • Ctrl+Enter -> Execute snippet

Still agree that a command which allows direct execution using Ctrl+P would be superior...

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like