zan-snippets README
FE code snippets at Youzan.
Features
- shuai state/effects/hooks
- zent, lodash quick import
- ajax
Using
Type part of a snippet, press Enter, and the snippet unfolds.
Supported snippets:
| Trigger |
Template |
| createstate |
[shuai]createState skeleton |
| createstateaction |
[shuai]createState action skeleton |
| createeffect |
[shuai]createEffect skeleton |
| createhook |
[shuai]createHook skeleton |
| ajax |
[ajax]ajax request skeleton |
| importzent |
[zent]Zent component import skeleton |
| importlodash |
[lodash] lodash function import skeleton |
Installation
- Install Visual Studio Code
- Launch Code
- From the command palette Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (OSX)
- Select Install Extension
- Type zan-snippets
- Choose the extension
- Reload Visual Studio Code
License
MIT License, refer to license file.
Source
Github
| |