Purescript PrestoDom Snippets
Code Snippets for PrestDom in PureScript Syntax
P.S. This is updated version of vsce-presto-dom
😇 Usage
Type part of a snippet, press enter , and the snippet unfolds.
Screen Snippets
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. |
View Snippets
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 |
Prop Snippets
Snippet |
Purpose |
_cr |
CornerRadii |
_sh |
Shadow |
_mg |
Margin |
_pd |
Padding |
Misc Snippets
Snippet |
Purpose |
_acc |
accessor |
_di |
derive instance |
⭐ Installation
- Install Visual Studio Code 1.35.1 or higher
- Launch Code
- From the command palette
Ctrl -Shift -P (Windows, Linux) or Cmd -Shift -P (OSX)
- Type and Select
Install Extension
- Search
Purescript PrestoDom Snippets and click install
- Done
👍 Contribution
- 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
What can you contribute
- Add more snippets which you use day to day
- Find bugs or errors or suggest some new idea.
- Add some cool snippets.
Facing Any Problem or need any Help:grey_question:
Incase you face any problem or need any help write me in issues section.
| |