«   Previous tip Next tip   »

Chrome DevTools: Use Quick Open to run predefined JavaScript snippets on your webpage

Last updated: 20th July 2020
Use Quick Open to run predefined JavaScript snippets on your webpage

The DevTools Command Menu now has improved behaviour for quickly executing the actions you want in DevTools. You can open up the Command Menu with the shortcut Cmd + Shift + P.

One powerful workflow this allows is to quickly run snippets of JavaScript code such as:

To run a snippet, type in !Your Snippet Name into the Command Menu.

If you type ? into the Command Menu, you see other options like:

The Command Menu has many other features, such as docking options, theme changing, and more. See a bigger list here: Tip #98 Command Menu

«   Previous tip Next tip   »

Sign up to receive a developer tip, in the form of a gif, in your inbox each week