Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

# vscode-javascript-snippets-of-cat
[![version](https://img.shields.io/vscode-marketplace/v/zskycat.javascript-snippets-of-cat.svg)](https://marketplace.visualstudio.com/items?itemName=zskycat.javascript-snippets-of-cat)
[![downloads](https://img.shields.io/vscode-marketplace/d/zskycat.javascript-snippets-of-cat.svg)](https://marketplace.visualstudio.com/items?itemName=zskycat.javascript-snippets-of-cat)
[![rating](https://img.shields.io/vscode-marketplace/r/zskycat.javascript-snippets-of-cat.svg)](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)