Skip to content

snippetify/vs-code

Repository files navigation

Snippetify for Visual Studio Code

This extension enables you to save snippets to the cloud from editor code and quickly insert any snippets from Snippetify warehouse, with Intellisense out of the box.

About Snippetify

banner

Snippetify is a community snippets warehouse but also a suite of tools that allow you to exploit these snippets.

  • Save your snippets to the cloud
  • Search snippets
  • Deep searching (search for snippets all over the web)
  • Share your snippets
  • Embed snippets in your forum or blog
  • Organize your snippets with tags
  • Contribute on snippets of others
  • Enhance your snippets by receiving votes and comments
  • Make coding fun by challenging your friends
  • Work on your notoriety by publishing good snippets which will allow you to receive stars, badges and privileges

Snippetify Extension Features

  1. Search snippets in the cloud

    1. Pre-fill with your document language
    2. Search in any user repository
    3. Search in your repository
    4. Search by tags
  2. Quickly insert snippets in one click

  3. Snippet preview with documentation

  4. Save your snippets to the cloud

    1. Pre-fill form
      1. With your document title
      2. With your document language
      3. With your selected code
  5. Snippet collections

    1. Save cloud snippet locally to your collections
    2. Download your snippets
    3. Download your favorites snippets
  6. Intellisense

    1. Snippet suggestion when typing

tour

Requirements

This Extension is available for free but registration is required for saving snippets to the cloud.

Getting started

1. Install the Snippetify extension

install

2. Add your Personal Access Token

token

2. Add it to Preferences > Settings > Extensions > Snippetify

add_token

You're all set! You can start saving snippets

Commands

Snippetify: Search snippets

Shortcut: ctrl+alt+f

Search for and insert a snippet from your or community repositories. Searches across snippets' title, description, tags and content.

Snippetify: Save selection

Shortcut: ctrl+alt+s

Save a snippet to the cloud from the text selection. The command launch a form which will allow you to add information about your snippet.

Snippetify: Close Panel

Shortcut: ctrl+alt+c

Close Snippetify panel.

Snippetify: Refresh collection

Refresh your local snippets collection.

Snippetify: Delete collection

Delete your local snippets collection.

Snippetify: Download my snippets

Download your personal snippets.

Snippetify: Remove my snippets from collection

Delete your personal snippets from local collection.

Snippetify: Download my favorites snippets

Download your favorites snippets.

Snippetify: Remove my favorites snippets from collection

Delete your favorite snippets from local collection

Context Menu

Right-click on an active editor to bring up Snippetify context menu actions. You can Save Snippet from the selected text or Insert Snippet at the cursor position.

context_menu

Status Bar Item

Click on </> Snippets in the VSCode footer to launch Snippetify finder which lets you search for snippets in the cloud.

status_bar

Change Keyboard Shortcuts

Snippetify's default shortcuts can be configured via the Keyboard Shortcuts editor (Preferences > Keyboard Shortcuts).

Extension Settings

Change Snippetify's default behavior (Preferences > Settings > Extensions > Snippetify).

This extension contributes the following settings:

  • snippetify.token: set your personal access token

settings

Ask for help

If you're having issues with this extension, please reach out to us by filing an issue.

Take a look at snippetify.com/help for additional guidance.

We welcome your contributions and thank you for working to improve the Snippetify development experience in VS Code. If you would like to help work on the VS Code Snippetify extension, please see our contribution guide. It explains how to build and run the extension locally, and it describes the process of sending a contribution.

Enjoy!