Collection of useful PrestoDom snippets in PureScript Syntax for writing code quickly
P.S. This is updated version of vsce-presto-dom
Type part of a snippet, press enter
, and the snippet unfolds.
Snippet | Purpose |
---|---|
_screen |
The basic screen code with types, views and controllers. |
_screen:types |
The basic screen types for the screen with default values |
_screen:view |
The basic view of the screen using Presto Dom |
_screen:controller |
All actions which can be performed on the screen. |
Snippet | Purpose |
---|---|
_ll |
linearLayout |
_rl |
relativeLayout |
_llHW |
linearLayout with weight "1" and width $ V 1 |
_llVW |
linearLayout with weight "1" and height $ V 1 |
_tv |
textView |
_et |
editText |
_iv |
imageView |
Snippet | Purpose |
---|---|
_cr |
CornerRadii |
_sh |
Shadow |
_mg |
Margin |
_pd |
Padding |
Snippet | Purpose |
---|---|
_acc |
accessor |
_di |
derive instance |
- Install Visual Studio Code 1.35.1 or higher
- Launch Code
- From the command palette
Ctrl
-Shift
-P
(Windows, Linux) orCmd
-Shift
-P
(OSX) - Type and Select
Install Extension
- Search
Purescript PrestoDom Snippets
and click install - Done
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -m 'Added some new snippet')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
- Add more snippets which you use day to day
- Find bugs or errors or suggest some new idea.
- Add some cool snippets.
Incase you face any problem or need any help write me in issues section.