You may not have heard of Nabokov, but you must have heard of his work lolita. The 20th century literary master had a famous habit of writing on cards. He would write down one story piece after another on each card, and then, like building blocks, put them together to form a complete story.
I don't start at the beginning and go chapter by chapter to the end. I just filled in the blanks, completing the jigsaw puzzle that was quite clear in my mind, taking one piece here, another piece there, making a piece of sky, another piece of landscape, another piece -- I don't know, maybe a drunken hunter.Copy the code
What I want to show you now is SnippetsLab, which is designed to collect and manage your cards, but the cards are not articles, they are snippets. Using SnippetsLab is more efficient. SnippetsLab is an easy-to-use snippet manager. It helps you collect and organize valuable snippets of code and ensures that you can easily access them at any time.
For Missing Code Snippets
Snippetslab is not a traditional code editor, its design has a strong flavor of fragmentation from beginning to end. It is not oriented to the continuous editing of a complete program scenario, but a program component out of the writing scenario.
In this scenario, you can write programs in a very fragmented way, and you can quickly call the code to various other programs. And what Snippetslab does is put that code together so that you can quickly search and call, put together small pieces of code quickly.
The ultimate purpose of SnippetsLab is to build your own huge library of snippets from all the snippets you tend to forget about in the corner of your computer. As you write and collect more snippets, your private snippet repository accumulates more and more code is available, which, combined with its fast search and database structure, will greatly help you build your programs. (Although the online codebase is certainly larger, it’s easier and more convenient to write your own code.)
Also, SnippetsLab supports iCloud, which means you can sync quickly across multiple devices.
Clean and simple interface
Let’s start with the interface.
The code editor we usually use is to display a simple editing interface, and finally save in the directory of our choice. Snippetslab uses a three-segment structure like Ulysses. SnippetsLab lets you manage all your valuable snippets in one place, including nested folders, tags, and smart group support. You can sort your excerpts by date, title, etc.
To enable faster access, drag the most commonly used folders and smart groups into the Favorites section to create shortcuts.
On the left is the folder directory, which supports the multi-layer folder structure. In the middle is the file directory under the current folder; On the right is the file content interface, the standard editor interface, with support for language highlighting.
SnippetsLab also does a good job of language support, with over 100 programming languages to choose from for language highlighting. You can customize the main languages used today to highlight.
Overall, the UI is clean, hierarchical, and supports 12 different color themes, a good choice for face control.
Powerful menu bar assistant
Snippetslab’s ambition is not just to be a generic code manager, it aims to be your second brain when you write programs, so it has a powerful menubar helper resident in the menu bar.
Snippetslab’s menubar helper is a bit like evernote’s menubar helper, but more powerful, and in many cases can be used entirely in place of the body of the application.
When you click on the beaker icon on the menu bar, you can see that it is split into two parts: find for search management and New for writing collection new code.
The Find section is used to find and view code, supports full content search, and best of all it displays a preview window when you hover your mouse over the file name so you can quickly copy the code inside.
The new part supports creating new files directly in a small window, similar to the design of Evernote, you can directly start writing, and you can choose to save the folder to which you belong, and you can also choose the corresponding language type, and support syntax highlighting in the current interface.
-
Full text search uses the search bar to find what you need immediately. You can choose to search only for the title, or for the title and content of the summary.
-
Use keyboard shortcuts to preview clips, open them in the main window, or copy the content to the clipboard.
-
Create Fragment Creates a new fragment from the menu bar.
Snippetslab can be hidden from the dock in Settings so that we can only see the ICONS on the menu bar.
Gist integration
As a powerful snippet manager, SnippetsLab works fine on GitHub Gist.
Bring your favorite gists (even other public gists) into the SnippetsLab in the form of GistHub your gists
Markdown preview
Are things getting more complicated? Try new cut-price clips.
You can use all the standard Markdown syntax and mix different kinds of languages in one snippet. Toggle edit/Preview mode between clicks.
Flexible export options
SnippetsLab allows you to export libraries as JSON, XML, or even plain text files.
After all, your library is yours.
Synchronization and backup
Up to. Keep your digest up to date with all Macs. It is pure and easy.
Other synchronization services. By changing the location of the library, you can choose to use any third-party file-based synchronization service, such as Dropbox or Google Drive.
Automatic backup. To ensure 100% data security, SnippetsLab provides a mechanism for automatically backing up tape libraries every day.
From this design and its iCloud support, it’s clear that Snippetslab wants to be the second brain of the code base, like Evernote.
In summary, Snippetslab is one of the few pieces of code management software that has the ambition to become your second brain in code, making your code writing and collection smarter and faster with its powerful menu-bar assistant. Your code snippets, in turn, will be able to do more of their work.
As a young app, it has a lot of potential waiting to be tapped. Use the official documentation website for reference
Each tool carries with it the spirit used to create it. — Heisenberg, Physics and Philosophy