This thread asks which functions people keep around to copy into various projects.
But my question is... How do you manage this? Which programs do you use to manage your personally re-usable code snippets? Text editor? Note-taking app? Thanks!
This thread asks which functions people keep around to copy into various projects.
But my question is... How do you manage this? Which programs do you use to manage your personally re-usable code snippets? Text editor? Note-taking app? Thanks!
For further actions, you may consider blocking this person and/or reporting abuse
Jasmeet Singh -
IDMTR -
Usman Zahid -
Ben Halpern -
Top comments (9)
I use SnippetsLab on Mac. A great app that has the needed features (fragments, notes, language markup and highlight). 100% worth it.
I don't use any service or software anymore. Just use your IDE sync to collect all your snippets
I will share just two links.
code.visualstudio.com/docs/editor/...
code.visualstudio.com/docs/editor/...
I use a snippets manager in Neovim. Don't recall which one off the top of my head, but they're all very similar. I maintain a few of my own in a filetype plugin package I made for my own use which is available on GitHub.
That said, in the last few weeks I've been using Copilot and that's made a lot of those redundant since it can create a decent starting point for many use cases without having to actively store snippets yourself. It seems to learn what you use a lot too and suggest it when appropriate. It's not perfect and you can't just trust everything it suggests, but it's incredibly handy.
I keep them into my notion dev wiki, ordered by language
I use GitHub Gists gist.github.com/discover
i have a sample project called 'bintracker'. i throw everything in there. it's also the reference point for onboarding new people.
If it's really repetitive, I'll use a snippet from vscode