Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>JavaScript ES6 SnippetsNew to Visual Studio Code? Get it now.
JavaScript ES6 Snippets

JavaScript ES6 Snippets

Douglas Tofoli

|
7,697 installs
| (0) | Free
Simple code snippets for JavaScript (include ES6 syntax)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JavaScript ES6 Snippets

This snippets include the ES6 syntax.

First additions

Prefix Snippets
imp import module from 'module';
rqr require('module');
req const nameModule = require('module');
mde Use module exports
epd Use exportf default
clsr Create one class with module.exports
clsi Create one class with export default
fn Create an anonymous function
fnn Create a named function
arf Crate an arrow function
aarf Crate an async arrow function
npr Create a new Promise

Contribute

If you want to add something, feel free to send me a pull request on GitHub.

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