搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Is there a way for saving code snippets in Firefox if no why don't you provide the same?

  • 6 回覆
  • 1 有這個問題
  • 2 次檢視
  • 最近回覆由 Shubham

more options

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.

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.

由 Shubham 於 修改

所有回覆 (6)

more options

Hi Shubham, do you mean this feature:

https://developers.google.com/web/tools/chrome-devtools/javascript/snippets

I haven't heard of that before. What have you found yourself using it for?

The DevTools team has its own forum. I think that would be a good place to mention this:

https://discourse.mozilla.org/c/devtools

more options

jscher2000 said

Hi Shubham, do you mean this feature: https://developers.google.com/web/tools/chrome-devtools/javascript/snippets I haven't heard of that before. What have you found yourself using it for? The DevTools team has its own forum. I think that would be a good place to mention this: https://discourse.mozilla.org/c/devtools


Yes, I mean the same feature

[https://developers.google.com/web/too.../snippets]

It is very useful when you learn a new concept and try it out in console or even save that code for future use. No need to go to a code editor for small-small things. We can try it there and persist it. It makes learning and remembering that concept easy.

more options

Shubham said

It is very useful when you learn a new concept and try it out in console or even save that code for future use. No need to go to a code editor for small-small things. We can try it there and persist it. It makes learning and remembering that concept easy.

When you use the multi-line mode in Firefox's Web Console, you can use the ^ and v buttons to go back and forth through recently executed code snippets, and there's a search button where you can search for words from snippets that are not in the back-forward buffer. But I don't think you can name and organize them:

https://developer.mozilla.org/docs/Tools/Web_Console/The_command_line_interpreter

So maybe saving specific snippets to a personal library, and a button to access those, could be integrated there.

more options

jscher2000 said

Shubham said

When you use the multi-line mode in Firefox's Web Console, you can use the ^ and v buttons to go back and forth through recently executed code snippets, and there's a search button where you can search for words from snippets that are not in the back-forward buffer. But I don't think you can name and organize them:

https://developer.mozilla.org/docs/Tools/Web_Console/The_command_line_interpreter

So maybe saving specific snippets to a personal library, and a button to access those, could be integrated there.


Yes, I do use multi-line console but as you also noticed that we are still waiting for facility to save and organize that snippet. If you are the part of Firefox team please try to convey this request to right person. Thanks in advance... :)

more options

I'm not involved with Developer Tools. I did add a comment to your thread on the other forum.

more options

No problem sir... Thanks for your time, attention and help.