Cozy snippets are an attempt to improve the way that we generate front-end code.
Features
Most of cozy snippets are available in this extension.
You can access them by typing the prefix c or cozy followed by the component name nad pressing tab or enter to autocomplete.
Example:
There are also some snippets for js and ts components as well as define messages templates that are context aware.
Usage
Snippet
Feature
cdefineMessagesFile
Create a new messages file considering your current path to create the messages
cdefineSingleMessage
Creates a new single message
ctic
Creates a new Typescript component using the name of the file to label it
cjsc
Creates a new Javascript component using the name of the file to label it
cozyBox
Adds the import of a cozy's Box (this pattern is used for all the other components)