Content-Length: 66366 | pFad | https://zed.dev/docs/ai/../languages/../ai/../ai/./../languages/../extensions/snippets.html

Snippets Extensions | Snippets
Download

Snippets

Extensions may provide snippets for one or more languages.

Each file containing snippets can be specified in the snippets field of the extensions.toml file.

The referenced path must be relative to the extension.toml.

Defining Snippets

A given extension may provide one or more snippets. Each snippet must be registered in the extension.toml.

Zed matches snippet files based on the lowercase name of the language (e.g. rust.json for Rust). You can use snippets.json as a file name to define snippets that will be available regardless of the current buffer language.

For example, here is an extension that provides snippets for Rust and TypeScript:

snippets = ["./snippets/rust.json", "./snippets/typescript.json"]

For more information on how to create snippets, see the Snippets documentation.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://zed.dev/docs/ai/../languages/../ai/../ai/./../languages/../extensions/snippets.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy