Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Below is a list of all available snippets and the triggers of each one. The **
| Trigger | Content |
| -------: | ------- |
| `imp→` | imports entire module `import fs from 'fs';`|
| `imn→` | imports entire module without module name `import 'animate.css'` |
| `imd→` | imports only a portion of the module using destructing `import {rename} from 'fs';` |
| `ime→` | imports everything as alias from the module `import * as localAlias from 'fs';` |
| `ima→` | imports only a portion of the module as alias `import { rename as localRename } from 'fs';` |
Expand Down
5 changes: 5 additions & 0 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"body": "import ${2:moduleName} from '${1:module}';$0",
"description": "Imports entire module statement in ES6 syntax"
},
"importNoModuleName": {
"prefix": "imn",
"body": "import '${1:module}';$0",
"description": "Imports entire module in ES6 syntax without module name"
},
"importDestructing": {
"prefix": "imd",
"body": "import { $2 } from '${1:module}';$0",
Expand Down