The Angular Storybook Boilerplate Snippet extension aims to streamline the process of creating Storybook stories for Angular components by generating the necessary boilerplate code. This saves developers valuable time during the development process.
To install this extension, follow these steps:
- Launch Visual Studio Code.
- Open the Command Palette using
Ctrl + Shift + P
(Windows/Linux) orCmd + Shift + P
(Mac). - Type "Extensions" in the Command Palette search bar.
- Select "Extensions: Install Extensions" from the dropdown.
- Search for "Angular Storybook Boilerplate Snippet" and click the "Install" button.
This extension provides a single snippet that generates the required boilerplate code for creating a Storybook story for an Angular component. To use it:
- Open a file for your Angular component.
- Trigger the snippet by typing
sbac
. - You'll have the option to enter your component's name (assuming it resides in the same folder as your story).
- Press
TAB
to move to the story title input.
Trigger | Content |
---|---|
sbac |
Template for Storybook Story |
This extension is designed to work with Storybook version 7.*. Please note that syntax may differ for older versions.
Contributions to this extension are welcome! If you'd like to report issues, suggest improvements, or contribute code, please visit the GitHub repository for more information.
This extension is licensed under the MIT License.
For more information about Visual Studio Code, visit the official website.