Stefanon Stack Overflow • Recommends
On “Run javascript file from the workspace in chrome developer tools”
A useful alternative to running a file from the workspace might be to run a snippet :
Sources => >> => Snippets + New snippet
Snippets can also be started with (also supports debugging):
Ctrl+Enter
Run button in the footer:
Command palette: Ctr+O => !{name of snippet}:
Unfortunately, those snippets are not simply stored as files in a preference folder. Therefore, creating a backup of many snippets might be tricky. Single snippets can be exported with "Save as..." option.
Related:
https://developer.chrome.com/docs/devtools/javascript/snippets/
link to this video
Which file does Snippets of Chrome Dev Tool saved at?
Cannot open File as Chrome Snippet