Best way to manage code snippets in Linux?
Asked Answered
L

2

12

How you manage/organize your collection of code snippets on Linux? Is there a specialized tool to do that (both in GUI and CLI environment)? Is there any convention about code snippet management in Linux? Also, I often do some work via ssh so it would be really helpful if I can access my snippet easily from command line. I just moved to Linux for several months and still got to learn a lot about software development in Linux.

Any suggestion is appreciated. Thanks!

Loria answered 14/11, 2010 at 0:27 Comment(7)
like subversion or something?Cystoscope
Actually like the one in visual studioLoria
What in Visual Studio do you like? Source Safe?Alpestrine
Earlier version with nearly the same title, and I'm sure there was a very popular version of the general version of this question early on.Summerly
But what about cli? Is there no easy way to do that in cli?Loria
@arifwn: I use emacs and the filesystem and a VCS.Summerly
Ah, emacs... I guess I should start learning to use it now. I was hoping to use some simpler software in cli but it seem none available.Loria
K
2

I think this is what you are looking for: Snippely and jCodeCollector

I use Snippely on my mac, it awesome.

Update: Moved to Dash for mac: http://kapeli.com/dash

Kinlaw answered 14/11, 2010 at 0:44 Comment(4)
Trying both now. jCodeCollector has syntax highlighting while Snippely has a nice look.Loria
The app seems long dead, but I've been looking for hours for a Linux snippet manager and can't find nothing similar. Here the download links for 3 OS's: pastebin.com/TGewkQv3Brownie
It's on github: github.com/alessandrococco/jcodecollector. I have recently moved to Dash: kapeli.com/dashKinlaw
Looks zuper-pro, funny that there's almost no options for Linux.Brownie
B
0

You could use Code Barrel to do that. For GUI based you could use the webapp but for CLI you could write scripts using the API. There is a plugin for Eclipse based IDEs as well.

Bacchanalia answered 15/11, 2010 at 13:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.