DEV Community

Discussion on: How do you manage re-usable code snippets?

Collapse
 
matthewbdaly profile image
Matthew Daly

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.