PDA

View Full Version : Snippets App



Ascension
February 20th, 2011, 05:39 AM
Is there a snippets app for Ubuntu?

On Window's I was running JCodeCollecor I believe. Looking for something to store my code snippets and such. Any help appreciated.

icodemonkey
February 21st, 2011, 02:15 AM
google for pysnippet or Qsnippetsmanager (what i use)
but as i have found out grep is the best way to find snippets of code
eg i have a folder of code organised this way:
/snippets/<lang>/<catagory>/<snippet>.<blah>

in the snippet file:

##### title of snippet #######
<code goes here>

to find it i use:

grep -nHIirF -- "<title of snippet>" /path/to/your/snippets

but as always YMMV