Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>js-lite-boxNew to Visual Studio Code? Get it now.
js-lite-box

js-lite-box

gaokuan

|
318 installs
| (0) | Free
js/ts/react代码段
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

js-lite-snnppet README

collect my snippets. since others doesn't fit well.

Features

short content
imp imports module
imn imports entire module
imd imports with destruct
edf export default
fn declare named function
afn declare async named function
efn export function
edf export default
req require('')
mde module.exports
fore forEach
map map
fof for of
con const
coo const with destruct
ret return
sti setInterval
sto setTimeout
rtp new promise
uss useState
use useEffect
imr import React
rcc create react class
rcf create react function

Release Notes

0.0.1

just a new one!

0.1.0

- fixed .jsx support
- add ts(.ts/.tsx) support
- add some snippets
- remove some useless snippets

0.2.0

- fixed fn eg. add name props
- refactor rcf/rcc ts/tsx, type -> interface
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft