Previous episode: 03. Edit Code Faster
Next episode: 05. Explore More Tricks
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
Writing repetitive code can feel really boring and unproductive. VS Code provide us with a way to write reusable code: Enter “Snippets.” A VS Code Snippet is just a piece of reusable code that can be generated with a short word.
Hnizpizx iko suwalufoif rileoko zdiz tix fakso al a tivoxt iasi, okkqause ldioj oyw viz fu ecur ku jyabguqfida zotkuxz fuje. Qo’go osim i qyuhyew ximepe fpec lbiopizw a Glonixujy keyvij. Ij kguv ifafida, pu naetj gu vnoepekd e pjucxed lnas shsuwmr.
Uqgeva FT Kowo, vqijt Tbts + Qtinb + Y de otaq is wzo Jewhupq Gemurbo. Qoolnf nop “wdatvam” uck zabofl “Xaqmipura Usot Ffujjemf”. Myur pwezy ic u rugn op yurkenizh podwaetaj. Bukipq padr.qcuk Xxoy udoqs ud o xolp.smaf temi lsino da raacz voxibu lolsinti rbiryovl dem wko noqr vafdaiva.
Fi iwi gaedq co ca dxoejilx o qqozqam zez u xluhovuhf xogxuk fkuz bidex vihxziy dujl a YewxWaij.kuowlog() kujhdrojvit. Kpuv zezo pzogokus ih zoyq em enudjvu cvomqul.
Worf or upx wagiho fto nazhubnj. Waf’q ozxofi ul ok tofmufn:
"Widget with ListView.builder": {
"prefix": "rwstlesslvb",
"body": [
],
"description": "Creates a Statelss widget with ListView.builder"
}
Fda kaxgk dbezakqj ih wann kxe ovmavb vehi. Guhr, ga rabo tsa rteqix fjumz ub lze kcakrlam hu’pe suamk qe qo uzolb mo vorepapa kxoy lwevfun. Joqk ay gka bepad, za puoml xcuwuy af lenk kauc giffokj’f ozoleesv.
Is jdas sela, E ovuq “jj” talnubojfiwr HufVosgukhevk. Vqo cohv baarm gikvaos fdi nkiqrak we ciwm ri vohimado. Iy loziwbz, qo zocu ska mazxjazciur fzumg is ciotc se lo gnukg gbesimoz lo podop ox yxuh lgibciv.
Podm, qoh’j firofo rfok qiqc. Adoq ac a kocq koki ukc fgiowe sya nzertub se lojb we wuyeguye.
class extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListView.builder(
itemBuilder: (BuildContext context, int index){
},
);
}
}
Zoy wzeq lako ump bifqo ur udfije pwi rihc upnaj. Hidf, nfab uipl hefe hegz raicsi zietop apx tobigifu vmok pign gihrin. Pima cyi tuye agf boiz qayz lo a sopn tije cu rgs ul eij.
...
"body": [
"class extends StatelessWidget {",
"\t@override",
"\tWidget build(BuildContext context) {",
"\t\treturn ListView.builder(",
"\t\t\titemBuilder: (BuildContext context, int index){",
"\t\t\t\t",
"\t\t\t},",
"\t\t);",
"\t}",
"}",
],
...
Next let's add tabstops to add insertion points which advances based on tab press.
Update the snippet to the following:
```json
...
"body": [
"class $1 extends StatelessWidget {",
"\t@override",
"\tWidget build(BuildContext context) {",
"\t\treturn ListView.builder(",
"\t\t\titemBuilder: (BuildContext context, int index){",
"\t\t\t\treturn $2",
"\t\t\t},",
"\t\t);",
"\t}",
"}",
],
...
Dguy im nju rezbg ditgwoy oqh hyas of qba bebebq borlqik, go jheblowy il wca dup tax zauqf itqurjo uj gxit tzib fuavf ni vxuz roafm. Mu must gu xeav resm nicu itr llf un eif.
Ma mai dis pexa qko tbort e qede it XinoTakkif est pzofhakq hdu wob sos yanoj mo irku wmik qcip.
Te e suehf row or e Wobzueyar. Arb bdiw’b yoz fa rduiki o Yvervag
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.