Vscode snippets to make creating new files with
Some snippets such as
nuxt-ts Generate variations .vue files with
typescript as the language, and automatically import nuxt-class-decorators.
scaffold creates a
.vue file with options to name the class and change the syle language to scss,css,less,styl,sass and where or not to scope the styles.
scaffold-with-scss same as
scaffold but picks
lang=scss in the style tag.
scaffold-with-scss-scoped same as
scaffold-with-scss but scoped styles.
scaffold-with-state-scss-scoped same as
scaffold-with-scss-scoped but with a
@State decorator defined and imported.
nuxt-ts Generate a store.
store - Generates a store and allows the user to fill in the store name & types. Does assume a RootStore type exists from the layout in nuxt-community typescript-template
- nuxt-community typescript-template (Some scaffolding in this extension assume using this template i.e. importing the RootStore from
types/index.ts in the store snippets)
- (Optional) any appropriate style loader for the style lang for .vue files.
This extension contributes the following settings:
nuxt-typescript-snippets.enable: enable/disable this extension
None yet.. :|
- Added vue-typescript templates for single file component with style variations
- Added typescript template for creating a store with layout similar to the nuxt-community typescript-template
- Fixed snippets being ignored