Skip to content

Snippet Files

Supports multiple code snippet file formats. You can directly use source code files of various languages as code snippets for import and use, or use the predefined dedicated snippet file format .snip.

.snip Snippet Files

Supports the use of predefined snippet files. In the future, this file type will gradually support more preset parameters.

Snippet Configuration Tag: <set></set>

You can use JSON format within the tag to configure snippet-related settings.

json
{
  "id": "meil70yxvrspyksivg9",
  "name": "example1755610553769",
  "displayName": "Example Snippet 1755610553769",
  "description": "This is an example code snippet",
  "language": "javascript",
  "cmd": "",
  "tags": [],
  "createdAt": "2025-08-19T13:35:53.769Z"
}

Supported Parameters

ParameterRequiredDefault ValueDescription
nameNoUses filename by defaultName
displayNameNoDisplay name
descriptionNoSnippet description
languageNoLanguage
cmdNoCommand (will be supported in the future)
tagsNoUses file extension by defaultSnippet tags (will be supported in the future)
createdAtNoSnippet creation time, automatically created when saved

Code Snippet Tag: <code></code>

This tag is used to store the snippet content.

Released under the MIT License.