In short: An open-source snippet manager that lets you play with code, improve productivity and save time.
If a tool makes things faster and more efficient, it saves the lives of many developers.
Although there are various services and platforms that attempt to speed up the coding experience, you still have several other options to consider.
For example, a snippet manager. With a snippet manager, you aim to save a section of code that you want to quickly access. It’s more like assigning shortcuts to add the required code into your program.
It’s not a new concept, but the tools available for the job may not be fully open source.
Luckily, I came across a decent project that provides you with a free and open-source snippet manager, i.e. massCode.
massCode: cross-platform open-source snippet manager
massCode is a useful snippet manager with some essential features.
It supports a wide range of programming languages and also includes support for Markdown. You can organize your code snippets using folders, add tags, and more.
massCode is available for Linux, Windows or macOS. Let’s take a look at some key features.
Features of massCode
massCode includes many useful features. Some of them are:
- Multi-level folder organizer
- Each snippet can be stored in fragments (tabs)
- Built-in coding editor, i.e., ace.
- Formatting or highlighting code.
- Markdown support with preview.
- The ability to search for an excerpt.
- Add descriptions to your snippet so you know what it’s for.
- Variety of dark/light themes available.
- Ability to migrate from SnippetsLab.
- Autosave to help you keep your work.
- Integrate it with cloud sync folders.
- Extension support for VSCode, Raycast and Alfred.
Along with all the mentioned features, you can also easily copy the saved snippets with just one click.
For customization, you can change the font size and family, toggle word wrap, highlight lines, use single quotes, or add an end command through Prettier.
Additionally, you can have multiple snippets for one snippet. Thus, it gives you the flexibility to use it for a wide range of use cases.
As mentioned, you can also integrate it with any of your cloud sync services by changing the storage location to synced folders.
Overall it works well, with some limitations, like the ability to migrate nested folders from SnippetsLab to massCode.
Install massCode on Linux
massCode is available as a Snap package, but not on the Snap store. You can download the package directly and use the following command to install it:
sudo snap install --dangerous ~/Downloads/masscode_2.6.1_amd64.snap
One of our troubleshooting guides can help you learn more about the dangerous snap indicator.
Have you ever tried massCode? Is there another snippet manager available for Linux? Let me know your thoughts in the comments below.