Skip to content

Commit

Permalink
Merge pull request #2 from woodreamz/customize-snippets
Browse files Browse the repository at this point in the history
Add import styled.
  • Loading branch information
woodreamz authored Jul 4, 2019
2 parents 41301ff + 44ef4b9 commit b1af540
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Every space inside `{ }` and `( )` means that this is pushed into next line :)
| `imd→` | `import { destructuredModule } from 'module'` |
| `ime→` | `import * as alias from 'module'` |
| `ima→` | `import { originalName as aliasName} from 'module'` |
| `imsc→` | `import styled from 'styled-components'` |
| `exp→` | `export default moduleName` |
| `exd→` | `export { destructuredModule } from 'module'` |
| `exa→` | `export { originalName as aliasName} from 'module'` |
Expand Down
4 changes: 4 additions & 0 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"prefix": "ima",
"body": "import { ${2:originalName} as ${3:alias} } from '${1:module}'$0"
},
"importStyled": {
"prefix": "imsc",
"body": "import styled from 'styled-components';$0"
},
"exportDefault": {
"prefix": "exp",
"body": "export default $1$0"
Expand Down

0 comments on commit b1af540

Please sign in to comment.