-
-
Notifications
You must be signed in to change notification settings - Fork 84
Snippets
FichteFoll edited this page Sep 9, 2017
·
1 revision
PackageDev provides a snippet with a snippet file's skeleton. You can access it with the snippet tab trigger.
PackageDev has a notion of "raw" snippets that only consist of the contents to be inserted without the other metadata associated with snippets (i.e. tab trigger, scope selector and description).
You can create a raw snippet with the PackageDev: New Raw Snippet command in the Command Palette. When you press Ctrl+S, the raw snippet is wrapped in an actual snippet and the metadata keys are added, allowing you to save the file normally afterwards.
You can extract the raw snippet part of a snippet file with the PackageDev: New Raw Snippet From Snippet command.