Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>vue-ts-decoratorNew to Visual Studio Code? Get it now.
vue-ts-decorator

vue-ts-decorator

dharmendra

|
4,041 installs
| (1) | Free
Vue Typescript component snippet using vue-property-decorator
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vue-ts-decorator

Vue Typescript component snippet using vue-property-decorator

Right now it just provide you vue-property-decorator class based component just start typing vue-ts-decorator in new .Vue file. This is useful for single file component.

    <template>
        <div class="my-component"></div>
    </template>

    <script lang="ts">
    import { Vue, Component, Prop } from 'vue-property-decorator'

    @Component({})
    export default class MyComponent extends Vue {

    }
    </script>

Currently it will be available globally in editor.

How to publish

Follow https://code.visualstudio.com/api/working-with-extensions/publishing-extension

contribution

Any contribution is welcome, please raise a PR

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft