Can snippet-generator.app generate snippets for Sublime Text and Atom?

Updated

Yes. snippet-generator.app is described as a "Snippet generator for Visual Studio Code, Sublime Text and Atom," so it supports all three editors. You fill in the snippet details once, and the tool outputs the snippet in the format the selected editor expects. The workflow is essentially the same as generating a VS Code snippet; what changes is the output syntax and where you save the file.

Supported editors

Editor Supported What differs in the output
Visual Studio Code Yes VS Code snippet JSON format
Sublime Text Yes Sublime .sublime-snippet XML format
Atom Yes Atom snippets format (CSON)

The site's own description lists these three editors, so Sublime Text and Atom are first-class targets rather than afterthoughts.

How the generation flow works

  1. Enter the snippet content — the text or code you want to insert, including any placeholder fields.
  2. Define the trigger — the short prefix you will type to expand the snippet.
  3. Add a description (optional but useful for identifying the snippet later).
  4. Select the target editor — VS Code, Sublime Text, or Atom.
  5. Copy the generated output.

The key point: steps 1–3 are editor-independent. Only step 4 changes the structure of what you copy, because each editor stores snippets in its own format and location.

Where each editor expects the snippet

  • VS Code: snippets live in a JSON file, typically a language-specific file or a global snippets file you open from the Command Palette.
  • Sublime Text: snippets are individual .sublime-snippet files saved in your Packages/User folder.
  • Atom: snippets are defined in your snippets.cson file, opened from the Atom menu.

Because Sublime and Atom use file-based or CSON-based definitions rather than a single JSON blob, the generated output from snippet-generator.app is formatted to drop into those files directly.

Common snags

  • Placeholders behave differently across editors. VS Code uses $1, $2, ${1:default} style tab stops. Sublime and Atom have their own placeholder conventions. If you paste a snippet built with VS Code placeholder syntax into Sublime or Atom without regenerating it for that editor, the tab stops may not work as expected — so pick the correct editor before copying.
  • Sublime needs one file per snippet. If you generate several snippets, each becomes its own .sublime-snippet file rather than one combined file.
  • Atom's CSON is indentation-sensitive. Paste carefully so the indentation is preserved.

Bottom line

If you need snippets for Sublime Text or Atom, snippet-generator.app covers both alongside VS Code. Build the snippet once, choose your editor, and copy the format that matches where you will save it.