Running Chrome Dev Tools Snippet from Keyboard

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

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

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.