Click here to Skip to main content
13,297,878 members (46,532 online)
Click here to Skip to main content
Add your own
alternative version


26 bookmarked
Posted 12 May 2008

SnipPit - A Snippet Repository

, 12 May 2008
Rate this:
Please Sign up or sign in to vote.
A SQL Server based VS add-in (and separate desktop app) snippet respository.




SnipPit is a Visual Studio (VS) 2008 Add-In (and a desktop application is included too) that allows for storing, retrieving, and searching for code snippets. It allows for keywords, code/language types (C#, VB, C++, etc.; you could even use this for code categories I suppose, if you really wanted to), multiple users, public and private snippets. It also provides a right-click menu within VS, and comes with a desktop program for use in apps other than VS. I wrote it for my personal use, but have seen others requesting snippet functionality like this, so I figured I'd share it.

Using the code

Install the Desktop Version first (binary) to get all the files in the right places. There is a ReadMe .rtf and .doc that are the same. Read one of them! You'll have to install the add-in source, and compile and run it to install it and be able to use it (it's all in the ReadMe).

Points of interest

I think I did at least a half-way decent job to make the code readable, usable, and efficient, but I'm quite sure it could be improved in all of those areas. I hope it is helpful/useful to many.


  • v1.0 - First public release.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralError trying to retrieve Snippet Pin
PeterA19-May-08 20:13
memberPeterA19-May-08 20:13 
AnswerRe: Error trying to retrieve Snippet Pin
marckusdavis5-Jun-08 5:03
membermarckusdavis5-Jun-08 5:03 
Sorry Peter,

I meant to get back to you sooner, life has intruded big time! I can only guess that in your case, your keywords are not separated by spaces. I apologize for the limitation, but again I wrote it for my own use and thought it might be helpful to share it. If you used something other than spaces, you may be able to just change the contents of the variable(s) in the program (the variable "aspace" for example) to contain the delimiter that you used and it might just work like that. I should have mentioned that you have to use a space unless you update the code in the instructions, but I forgot about it.
GeneralCool idea Pin
kissdznuts12-May-08 11:06
memberkissdznuts12-May-08 11:06 
AnswerRe: Cool idea Pin
Marckus13-May-08 4:19
memberMarckus13-May-08 4:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171207.1 | Last Updated 12 May 2008
Article Copyright 2008 by Marckus
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid