6

I am looking for a code snippet manager (or, more generally, a text snippet manager) that stores all of its data locally (i.e. not cloud-based).

As "code snippet managers" seem to cover a variety of use cases, I would like to narrow down the scope: The primary purpose of the application I'm looking for is to organize and let me easily find hard to remember short or long pieces of text. Short can mean that it is just a single word, long can mean that there are 50 or more lines of text. I use most of these pieces of text infrequently and I am not concerned about saving a few keystrokes. In some cases, I would not even want to copy and paste the text anywhere, but just read it right in the snippet manager.

It should be possible to organize code snippets by language/framework/technology (i.e. at least one "hard" level of categorization); anything beyond should be well usable for larger collections of code snippets (maybe by further hierarchical grouping, maybe by user-defined tags, ...). Code snippets must not be limited in length. Syntax-highlighting is a plus, but not absolutely necessary.

The application must run on Windows (although Windows/Linux cross-platform capabilities are a bonus), be gratis and open source, and usable with a GUI (i.e. not a purely text-based interface).


I am not looking for a code editor that also includes a code snippet manager. I am looking for a central tool to store snippets for use in other editors and IDEs.


To emphasize the offline aspect, applications that require me to sign into some online account just to use them are not suitable.

2
3

You can try BoostNote, which has organizer of snippets. Maybe it dont have categories, but it has "tags" to mark notes with names of smth. It is free.

1
  • Unfortunately, I've had to unaccept this answer now. After having used Boostnote for several years (and despite the awful bug that quick searching in the snippet list would somehow switch focus to the edit window, making you unintentionally add some letters at the beginning of notes), I was actually quite happy with the app. But it seems the developers want to go more into the direction of collaborative cloud-based snippet management. In the current version of the client, I can't even find a way to get started without creating an account anymore. Oct 21 at 7:52
2

To me, this sounds like a classic case for a Clibpboard manager. I have been using Ditto for years, and would normally recommend it.

But, given that you want to sort snippets by language, I would recommend something more hierarchical. Take a look at the free PhaseExpress

PhaseExpress is a very full-featured clipboard managing utility. It has a tree-style folder structure for managing all sorts of folders. It came with some preset categories, but you can add and remove any to customize it to your own liking.

This isn’t just a basic clipboard manager, but a text manager and autocompleter. You can use it to store any used phrases that you’d ever want to reuse or that you commonly use.

And it has a lot more features thanj just that quote.

enter image description here

Generally, most Windows programs run well in Linux using Wine, but I wouldn't be too sure when it comes to the clipboard. Please let us know how it works out for you. It could help others to know.

2

I recomend Snippman from Coderlamp

(I’m the author of Snippman) Snippman was created when i needed to store my code notes in an organized way for my new job.

It let’s you create code snippets, rich text notes (with images, links, embedded youtube videos etc) and you can also mix code blocks with text blocks.

Your snippets are organized in folders and you can find them easily by search.

It runs locally and no internet connection is needed.

enter image description here

1
  • Unfortunately, the link has gone dormant (it says "We will be back soon"). Is this a very temporary thing, or has the website moved? Oct 21 at 7:54
1

There is SnipAssist at SnipAssist.com that organizes and stores text snippets on a local disk independent of any editor or IDE. The clipboard is used to transfer text into or out of the snip library. Hot keys are not used and the library is portable. Each folder can have a description and the snippet can have a description. Descriptions and content can be searched.

The free version will handle several hundred snippets of any size. There is a premium version for sale with extra features for larger snippet libraries.

1
  • Please disclose your affiliation with this product, or this answer will have to be deleted. May 27 '19 at 21:59
1

I recommend Molimentum Quick (disclaimer: I'm the founder). It's available for Windows and Ubuntu. IT'S FREE! You can insert code snippets with ease with some shortcuts (check out the "smart insert" feature in docs).

You can then click a shortcut, search, and it's copied to the clipboard. It supports syntax highlighting and because of the versatile design, it works in every editor.

The software stores everything locally and encrypts it too. It can in addition to code, store text, launch scripts and URLs, and group items together.

It has a tag feature and a filter function to organize your snippets.

enter image description here

2
  • 1
    Is your code on github or some equivalent? As it stands, if I can't get to your website with an ad-blocker, I'm not going.
    – Diagon
    Apr 23 at 20:21
  • Unfortunately, it seems that the link has died in the meantime. Oct 21 at 10:32
0

For that purpose I use a text substitution tool called Beeftext

You can invoke it when you want and paste the desired snippet.

  • Portable
  • Open-source
  • Free
  • Keyboard shortcut

enter image description here

5
  • I'm not sure this one is useful for my purpose; it looks like it is focused on auto-replacing keywords with the snippets. Is it even possible to store snippets without keywords? I have plenty of snippets that I use quite rarely, and thus wouldn't remember a keyword for, but that I usually find via their description/tags. Also, at least from the screenshots, it looks like multiline snippets could be cumbersome (?) Oct 21 at 8:01
  • Now I prefer to use espanso.org is much better... but still waiting for the next release!
    – Josem
    Oct 21 at 10:30
  • Just like with Beeftext, I'm not sure whether Espanso handles managing snippets that are not linked to individual keyboard shortcuts, and how well it can manage/display snippets consisting of many lines. Can you tell me, or possibly add a separate answer about Espanso? Oct 21 at 10:41
  • The main idea is that it works like a text expander: some keys invoke a predefined text.
    – Josem
    Oct 22 at 8:02
  • Ok, so the main purpose of this application seems to be reducing the typing effort for frequently used texts. What I'm looking for is rather about finding hard to remember infrequently used texts again. As both of these somewhat different things seem to be called "snippet manager", I have added a paragraph to my question to clarify the scope. Oct 22 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.