vscode-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
| |