Open Studio
Essentials

Snippets

Snippets are the core building blocks of Snipplle — reusable pieces of code stored inside a workspace.

What Is a Snippet?

A snippet is a saved piece of code that you can reuse across projects and environments.

Snipplle supports two types of snippets:

  • Private snippets — visible only inside a workspace
  • Public snippets — available to everyone through the public library
Snippets are always created inside a workspace.

Creating Snippets

Snippets are created inside a workspace.

When creating a snippet, you can:

  • Give the snippet a name
  • Choose a programming language
  • Define its visibility (private or public)
  • Add the tags
  • Add the code content

This keeps snippet creation simple and flexible.


Public Snippets

Public snippets are shared with the community.

  • Public snippets are accessible to anyone
  • They appear in the public library
  • They can be viewed without joining a workspace

Public snippets are still owned by their original workspace.


Private Snippets

Private snippets are restricted to workspace members.

  • Visible only to the workspace owner and members
  • Not accessible outside the workspace
  • Removed immediately when a user loses workspace access

This makes private snippets suitable for internal or sensitive code.


Editing Snippets

Snippets can be edited at any time.

You can update:

  • The snippet content
  • Its name
  • Its visibility (public or private)

Changes apply immediately.


Access and Visibility

Snippet access follows clear rules:

  • Public snippets are globally readable
  • Private snippets are workspace-scoped
  • Workspace membership defines private access

This model ensures clarity and predictability.