SnippetsLab 4+

Your code at your fingertips

Renfei Song

    • 4.5 • 207 Ratings
    • $9.99



- Mac App Store “Best of 2015”
- Featured in stories “All Your Code, Brilliantly Organized”, and “Keep Your Code at Your Fingertips”
- Featured app in “Apps for Developers”, “Essential Coding Apps”, “Essential Apps for Developers”, and “Wrangle Your Code”

Supercharge your productivity with SnippetsLab.

SnippetsLab is a full-featured, elegant and easy-to-use snippets manager. With support for over 440 languages, full Markdown capabilities, and powerful organization and search features, it helps you build your personal coding knowledge-base and makes sure that you have easy access to them at all times.

Main Features

• Stunning user interface with 13 fully customizable themes.
• Syntax highlighting for over 440 languages.
• Create nested folders, as well as smart groups and shortcuts.
• Add notes & tags to a snippet.
• Include multiple parts, or “fragments” in a single snippet with different languages.
• Open multiple and/or floating windows for quick reference.
• Full-text fuzzy search with smart search filters.
• Use iCloud to backup and synchronize your library across multiple devices.
• Automatic code formatting (for supported languages only).
• Keyboard shortcuts to use the app mouse-free.
• Export the library to JSON, XML or plain text files.
• Automatic backups for a peace of mind.
• Support for printing, sharing, macOS Services, etc.

Markdown Support

• Choose between editing, full preview, or side-by-side preview mode.
• Accurate two-way scroll synchronization.
• Syntax highlighting for the same set of over 440 supported languages.
• Write and render LaTeX math formulas (via MathJax).
• Insert interactive table of contents.
• Quickly toggle format options and insert links, tables, footnotes, etc.
• Customize (or provide your own) CSS stylesheets.

SnippetsLab Assistant

SnippetsLab Assistant provides a quick and convenient way to access many app functionalities from the menubar. You can create new snippets, or browse and search for existing ones. You can preview your snippet right from the menubar, copy to clipboard, reveal in the main window, or even insert directly to the active app.


• Sync: Customize the library location to use any 3rd-party file-based sync services, such as Dropbox or Google Drive.
• GitHub Gist: Import from GitHub Gist & publish your snippets as gists. (Please note that two-way sync with GitHub is not supported at the moment.)
• Alfred Workflow: Search and view the results directly in Alfred, open them in SnippetsLab, copy to clipboard or paste to the active app. (Note: Alfred Powerpack is required to use the workflow.)
• Alfred Custom Search: Initiate a searching query from Alfred using the “snippetslab://search/{query}” URL scheme, then view the results in SnippetsLab.

More Info

For a list of all supported languages, please visit:

User manual:

What’s New

Version 2.0.3

- Fixed an issue where deleting a currently in-use custom theme may cause the app to misbehave until restarted
- Fixed an issue where the Assistant window may occasionally fail to update appearance when switching between themes
- Fixed a regression in 2.0.2 that adds an extra trailing space when copying rich text from the editor

Previous updates in SnippetsLab 2.0.2:

- Improved brackets and quotes autocompletion
- Improved invisible character rendering
- Text find & replace in the editor now uses the integrated find bar rather than in a separate window
- Added more Cocoa symbols for Swift and Objective-C syntax highlighting
- Resolved a system alert pertaining to impending Python framework deprecation
- Fixed an issue where copying a discontiguous range will only copy the first selection
- Fixed a layout bug that may occur when wrap indentation is enabled
- Fixed an issue where the assistant window may appear on the wrong screen when screens are arranged vertically
- Desktop tinting now applies to the assistant when using the Mojave Dark theme
- Minor improvement to the default styles of the Markdown preview
- Fixed an issue where autocomplete may suggest non-existent options when entering tags
- Other minor bug fixes and performance improvements

Thank you for supporting SnippetsLab. If the app has been helpful, please consider leaving a rating or review to share your experience with others.

If you have any questions or suggestions, please reach out using the in-app feedback (Help > Submit SnippetsLab Feedback…), or send me an email to directly.

Ratings and Reviews

4.5 out of 5
207 Ratings

207 Ratings

dpmitu ,

Thanks for the update!

This app was exactly what I needed, but I noticed that it was a while since the last update. Then when I started using it, I ran into the gross fragmets bug. So I uninstalled the app. If it isn’t being updated and there’s deal breaker bugs, I’m not going to waste my time. That was a month ago. Lo and behold, I find myself on the App Store page by accident and notice it’s been updated. So glad! Thank you!

mister zed ,

Almost great, if not for TWO Achilles tendons

I bought this several years ago, and tried importing my CodeBox snippets—since that app was abandoned years ago and this one is generally superior. The problem is that SnippetsLab has a lousy importer which fails to import the smart groups. I figured they would fix this, and decided to stick with CodeBox for a while. Fast-forward a few years and I got so sick of CodeBox I just couldn't put up with it any more. I've PAID for Snippets Lap after all, I should use it. And guess what, the importer is still terrible. 😱

Another even bigger problem: instead of a separate menubar app and full app, the single app can show up in your menubar and either hide the menu and dock icon and command-tab icon, OR show all of those. This means if you want to have access to an item in the menubar, you need to either ALWAYS have the app open (very annoying!) or NEVER have access to the app's menu and NEVER be able to switch to the open app through the Dock or through command-tab. This is a really incredibly bad design, the very same one that makes Fantistical go from a gorgeous calendar to a useless calendar.

jazzpicker24 ,

Another version that crashes on iCloud Sync - no fix in sight

Nice idea and all, but unfortunately there is no effective way to synchronize snippets between machines. Just touching the iCloud tabs in Preferences will send the app into an infinite spin as has been the case over several versions now. So unless you want to start to manually create a document with another app where you keep all your snippets and then manually transfer those back into this app on each machine, you're fresh out of options. And that of course completely defeats the purpose of this app. If you only run one computer though this may not be of concern.
Otherwise best look elsewhere.

BTW: Can't verify the author's claim of "Mac App Store BEST". Seems he only added that headline as a shameless marketing gimmick. Well - I fell for it, so at least someone is making money.

App Privacy

The developer, Renfei Song, indicated that the app’s privacy practices may include handling of data as described below. For more information, see the developer’s privacy policy.

Data Not Linked to You

The following data may be collected but it is not linked to your identity:

  • Identifiers
  • Usage Data
  • Diagnostics

Privacy practices may vary, for example, based on the features you use or your age. Learn More


  • Family Sharing

    Up to six family members can use this app with Family Sharing enabled.

Featured In