As someone learning to code I built a tool for other developers in the same boat.
It's for saving that one piece of code that worked after (what seems like an eternity) of searching, trying and searching again. For the next time you'll need it.
Save snippets by just selecting the text & right-click.
Hope you find this helpful!