This extension contains code snippets for epig admin app
.
In order to install an extension you need to launch the Command Pallete (Ctrl + Shift + P or Cmd + Shift + P) and type Extensions. There you have either the option to show the already installed snippets or install new ones.
Launch VS Code Quick Open (Ctrl + P or Cmd + P), paste the following command, and press enter.
ext install vscode-admin
Alternatively you can open the extensions panel and search for 'Typescript React code snippets'.
- TypeScript (.ts)
- TypeScript React (.tsx)
Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB
key.
Trigger | Content |
---|---|
rqr |
Require |
adminformtsrcc |
Create a form Component |
admintabletsrcc |
Create a table Component |
admintableactioncolumn |
Create table action column |
admintabletoolbar |
Create table toolbars |
admintablecolumnitem |
Create table column item |
adminhanaction |
Create a handle simple action in reducer |
adminhanapiaction |
Create a handle api action in reducer |
admincreapi |
Create a api config |
adminformitem |
Create a formItem |
admindispatch |
Create a dispatch |
adminprops |
Get props |
adminmodel |
Create a model |
adminlistmodel |
Create a list model |
adminc |
Simple Container[Hooks] |
admintablec |
Table Container[Hooks] |
adminformc |
Form Container[Hooks] |
Trigger | Content |
---|---|
adminless |
Create a less template |
MIT