Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zskycat/vscode-javascript-snippets-of-cat
JavaScript snippets of Cat is a VSCode extension. This extends my own code snippets for JavaScript and TypeScript.
https://github.com/zskycat/vscode-javascript-snippets-of-cat
javascript snippets typescript vscode-extension
Last synced: about 2 months ago
JSON representation
JavaScript snippets of Cat is a VSCode extension. This extends my own code snippets for JavaScript and TypeScript.
- Host: GitHub
- URL: https://github.com/zskycat/vscode-javascript-snippets-of-cat
- Owner: ZSkycat
- License: mit
- Created: 2018-07-30T16:33:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T07:15:58.000Z (over 6 years ago)
- Last Synced: 2024-11-08T17:45:15.365Z (3 months ago)
- Topics: javascript, snippets, typescript, vscode-extension
- Language: PowerShell
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# vscode-javascript-snippets-of-cat
[](https://marketplace.visualstudio.com/items?itemName=zskycat.javascript-snippets-of-cat)
[](https://marketplace.visualstudio.com/items?itemName=zskycat.javascript-snippets-of-cat)
[](https://marketplace.visualstudio.com/items?itemName=zskycat.javascript-snippets-of-cat)**JavaScript snippets of Cat** is a VSCode extension. This is my own code snippets for JavaScript and TypeScript.
## Supported Languages
- JavaScript (.js)
- JavaScript React (.jsx)
- TypeScript (.ts)
- TypeScript React (.tsx)
- Vue (.vue)
- Html (.html)## ES Module Snippets
| Trigger | Name | Code |
| ------- | --------------- | ----------------------------------- |
| `imp` | import default | `import name from 'module';` |
| `impn` | import name | `import { default } from 'module';` |
| `impa` | import all | `import * as name from 'module';` |
| `impr` | import run | `import 'module';` |
| `exp` | export default | `export default` |
| `expf` | export from | `export { default } from 'module';` |
| `expa` | export all from | `export * from 'module';` |## Try Snippets
| Trigger | Name | Code |
| ------- | ----------------- | ------------------------------- |
| `tryc` | try catch | `try { } catch { }` |
| `tryf` | try finally | `try { } finally { }` |
| `trycf` | try catch finally | `try { } catch { } finally { }` |## Other Snippets
| Trigger | Name | Code |
| ------- | ---------- | --------------------------------- |
| `gett` | getter | `get property() { return true; }` |
| `sett` | setter | `set property(value) { }` |
| `caseb` | case break | `case value: break;` |## License
[MIT](https://github.com/ZSkycat/vscode-javascript-snippets-of-cat/blob/master/LICENSE.txt)