This JSON file contains snippets for all NativeScript UI components and some frequently used attributes.
All UI components are prefixed with ns
. Attributes do not have a prefix.
nsabsolute
nsdock
nsgrid
nsstack
nswrap
nspage
nsactionbar
nslabel
nstextfield
nspassword
nstextview
nsimg
nsborder
nsbtn
nssearchbar
nsswitch
nsslider
nsprogress
nsloading
nsdate
nstime
nslistpicker
nssegmentedbar
nstabview
nslistview
nswebview
css
text
icon
tap
wrap
halign
valign
visibility
stretch
kbtype
colspan
rowspan
row
col
width
height
Inside Visual Studio Code press
CTRL + P
Type the following in the console window
ext install nativescript-xml-snippets
Hit enter.