Hey Devs
Do you have a habit of saving code snippets? (I don't). If Yes, comment on your favorite tool to manage your code snippets.
And If No, Tell me why you don't need a snippet manager. Personally, I didn't find a good product to use.
Hey Devs
Do you have a habit of saving code snippets? (I don't). If Yes, comment on your favorite tool to manage your code snippets.
And If No, Tell me why you don't need a snippet manager. Personally, I didn't find a good product to use.
For further actions, you may consider blocking this person and/or reporting abuse
Oldest comments (27)
I haven't lately been creating snippets of code. However, I also haven't found a good snippet manager that works for me and I have used gist.github.com/.
Hope you find something that works well for you.... and then you can share it with me =)
I usually have a context, so I just commit them to a relevant repo. If not, I would go for gist.github.com
I build a website/product & put them all in it for easy access (literally, take the code from a site /app to reuse). Then I know where they go & what they are compatible with. No need for a filing system or organizing.
This won't work in all scenarios but it works for a lot of straightforward stuff.
I want to use a tool something like pet, but there are a few things about
petspecifically that I didn't love and therefor never spent a ton of time getting setup.It's been a bit since I really got into it, but I believe the few things I didn't love were the fact that
gistswere the default syncing strategy, and their search was as 'fuzzy' as I would have liked. But I thinkpetmight be an amazing tool for others, just didn't fit my workflow perfectly.What I actually use is nvalt and have different notes for different 'topics' with different snippets in them. For instance I have a
bashnote with various different bash snippets I might want.The reason I don't love this is my snippets are intermingled with other more prose style notes, and I would like to seperate the two. But this works for now until I find the right tool to replace it with!
This looks interesting! Would you mind expanding on how you use this to manage code snippets? From my limiting glance at the README it seemed more focused on creating new projects from templates.
Gotcha that makes sense, thanks for the reply! I'll have to give it a closer look
I do all the time! Never know when you’ll need them again. For this I use Cacher (cacher.io/). It integrates with VS Code so I can insert/save snippets right from VS Code!
I use Dash, and I'm more than happy with its functionality. I always have the app open and use it frequently as a resource for documentation when coding, so it's easy to remember where all of my personal code snippets are.
Another satisfied user of gist.github.com. I comment them with hashtags and run a chunk of python that indexes gists based on their hashtags and nudges me about duplication of content.
Some comments may only be visible to logged-in visitors. Sign in to view all comments.