README.md

January 28, 2026 · View on GitHub

✨vscode-javascript-snippets✨

license version languages repo-size

snippets for js, ts, react, vue, nestjs and vitest.

Installation

In order to install an extension you need to launch the Command Palette.

There you have either the option to show the already installed snippets or install new ones. Search for JavaScript and TypeScript Snippets and install it.

Supported languages (file extensions)

  • JavaScript (.js)
  • TypeScript (.ts)
  • JavaScript React (.jsx)
  • TypeScript React (.tsx)
  • Html (.html)
  • Vue (.vue)

Configurations

KeyDescriptionTypeDefault
framework.enabledSelect which framework snippets to enablearray["vue","react","nest","vitest"]
react.languageScopesDefines the language scopes for which the snippets will be available.
Use comma separated values.
For example: typescript,typescriptreact,javascript,javascriptreactstring"typescript,typescriptreact,javascript,javascriptreact"
react.importReactOnTopControls if snippets should add import React from 'react'; at the top of components.
Use if you have React +17 and use jsx transform.booleanfalse
vue.languageScopesDefines the language scopes for which the snippets will be available.
Use comma separated values.
For example: vue,typescript,javascriptstring"vue,typescript,javascript"
vue.uniappCodeSnippetsWhether to support uniapp code snippetsbooleantrue
vue.vuexCodeSnippetsWhether to support vuex code snippetsbooleanfalse
vue.useTemplateSnippetsDefines the template snippets for which the snippets will be availablearray["vinit","vinit-scss","vbase","vbase-scss","vts","vts-scss"]

Snippets

Common Snippets

For complete Common snippets documentation, visit Common Snippets

React Snippets

For complete React snippets documentation, visit React Snippets

Vue Snippets

For complete Vue snippets documentation, visit Vue Snippets

Vitest Snippets

For complete Vitest snippets documentation, visit Vitest Snippets

NestJS Snippets

For complete NestJS snippets documentation, visit NestJS Snippets

License

MIT License © 2024-PRESENT sankeyangshu