Skip to content

GabrielCastello/vscode-javascript-snippets

Repository files navigation

G4BR13L VS Code JavaScript (ES6) snippets

Version Installs Ratings

This extension contains code snippets for JavaScript in ES6 syntax for [Vs Code][code] editor (supports both JavaScript and TypeScript).

Installation

In order to install an extension you need to launch the Command Pallete (Ctrl + Shift + P or Cmd + Shift + P) and type Extensions. There you have either the option to show the already installed snippets or install new ones. Search for "G4BR13L JS Snippets" and install it.

Supported languages (file extensions)

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

Snippets

Below is a list of all available snippets and the triggers of each one. The means the TAB key.

Import and export

Trigger Content
req→ require package to const const packageName = require('packageName');

Class helpers

Trigger Content
cla-> adds class with constructor and module.exports `

Another cool snippet that i used as reference: xabikos/vscode-javascript

About

Contains my personal code snippets for JavaScript (ES6) development in VS Code editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published