Why don't you provide functionality for saving code snippets in Firefox?

I am using Firefox as the main browser for web development but it doesn’t have functionality for saving code snippets . Most of the developers are switching to chrome because of this inability to save code. Firefox is good with other things but please provide this function. It would be one of the demanding updates for web developers . Please show some concern about this issue.

1 Like

There is an RFE on file for this from a few years ago: https://bugzilla.mozilla.org/show_bug.cgi?id=1315549

It would be helpful to understand the specific use cases for this feature.

Firefox has expression history (https://developer.mozilla.org/en-US/docs/Tools/Web_Console/The_command_line_interpreter#Execution_history) and this would be like adding bookmarks to speed access to selected ones. Is this a common developer activity?

It’s possible to associate a shorthand name an expression/snippet now, but it’s a bit too much work. Let’s say you frequently want to modify the page’s background color:


To add a name, one option would be:

(function (){

But creating that and then searching for that is quite a bit of extra work compared with choosing from a list.

A simpler workaround for now would be a regular bookmarklet.

1 Like

The way you suggested is circuitous. It require lot of extra work. Why would someone do this when we have simple solution for this in Chrome.
I mean to say for front-end developer Its like creating small library instead of using already available one.
Firefox is really good for Web Development but please don’t ignore voids or emptiness that is still present in it. Try to be problem solver and give us another good reason to stick to it.

Hello @SudoCodes ,

we don’t have a snippet management UI as Chrome does, but you can save and load snippets from the WebConsole (with Ctrl+S/Ctrl+O, or Cmd+S/Cmd+O on OSX)

1 Like