Version: All
OS: All
What steps will reproduce the problem?
(1) Attempt to access snippets without leaving the console
(2) This cannot be done today. You need to navigate to Sources > Snippets.
What is the expected result?
To reduce the number of steps needed to trigger a snippet, what if we introduced a "snippet:" syntax in the DevTools console. Typing the name of the snippet after snippet: would begin to autocomplete it based on filename. The developer can then hit enter to run the snippet without needing to leave the console at all.
e.g
snippet: conso
snippet: console-image.js
console-formatters.js
[hits enter -> runs]
Request from Twitter: https://twitter.com/darcy/status/799662234590937089
What happens instead?
Sadness ensues and unicorns cry. Many more steps are needed to go to the Snippets sub-panel, locate your snippet and then run it. The history autocompletion we offer isn't quite good enough here as you could have numerous utilities defined in a single Snippet file and it's probably unrealistic to expect folks to remember everything they have defined there.
Comment 1 by clarke.d...@gmail.com
, Nov 18 201627.0 KB
27.0 KB View Download