Solid Typescript snippets
A Zed-version of solid-snippets
Update: zed-solid-ts-snippets is officially published on the Zed extension store! You can now simply enable it in the Zed app.
- Clone the repo
git clone https://github.com/HarryYu02/zed-solid-ts-snippets.git
-
Open Zed > Extensions
-
Click "Install Dev Extension" > Select your cloned repo
Prefix | Description |
---|---|
safc |
Solid function component |
sapc |
Solid parent component |
saflc |
Solid flow component |
savc |
Solid void component |
safci |
Function component w/ imports |
safce |
Function component w/ imports + export |
sapci |
Parent component w/ imports |
sapce |
Parent component w/ imports + export |
saflci |
Flow component w/ imports |
saflce |
Flow component w/ imports + export |
savci |
Void component w/ imports |
savce |
Void component w/ imports + export |
sahc |
Extend HTML element |
sahci |
Extend HTML w/ imports |
sahce |
Extend HTML w/ imports + export |
sctxp |
Solid context provider boilerplate |
ssig |
createSignal shorthand |
seff |
createEffect shorthand |
seffon |
createEffect(on(...)) variant |
smemo |
createMemo shorthand |
smemoon |
createMemo(on(...)) variant |
Any contributions are welcomed!