Code Faster With Custom VS Code Snippets

Поділитися
Вставка
  • Опубліковано 21 жов 2024

КОМЕНТАРІ • 131

  • @sanghvian
    @sanghvian 4 роки тому +10

    It's 4:55am here in India and I have the exact same level of enthusiasm watching Brad's videos as at 7pm

  • @IamMclov1n25
    @IamMclov1n25 5 років тому +38

    I start my first dev job in 2 weeks and want to say thank you. I could say thank you a million times and feel like it wouldn't be enough. From the udemy classes to youtube vids ur a blessing to the world. Even thought I don't know u, u have become one of my mentors. Thanks a million Brad!

    • @yashpandey350
      @yashpandey350 4 роки тому

      how????

    • @vinny659
      @vinny659 4 роки тому +1

      Couldn't agree more with you IamMclov1n25

  • @mykalimba
    @mykalimba 5 років тому +5

    For convenience, it's a good idea to add a final tab stop at the end of many snippets. In these instances, once you've tabbed through all of the stops, you end up at the end of the snippet, ready to continue typing any code that follows.

  • @TheTechRancher
    @TheTechRancher 5 років тому +14

    I was just looking up how to do some of this. Thanks Brad. You are awesome! Keep up your hard work, we greatly appreciate it!

  • @bobbyboxer2664
    @bobbyboxer2664 5 років тому +1

    Brad ALWAYS delivers such AMAZING AND HELPFUL content. I started working in development after a bootcamp and you were one of my go to resources through school.
    Here I am a year later STILL coming in for the valuable gems you always drop. Such a huge inspiration Brad. 💪🏼💪🏼💪🏼
    I also took your bootstrap, React and modern JS courses in Udemy. More gems of knowledge there.

  • @Dakilangmanok
    @Dakilangmanok 5 років тому

    I've known how to create my own snippets for awhile, this just gave me a much cleaner and efficient way of doing them. Thank you! I appreciate all of your tutorials I have followed.

  • @anwitmondal6417
    @anwitmondal6417 2 роки тому

    Thanks man, I could never imagine that someone could create a web app to help folks create IDE snippets !!!!

  • @pdep
    @pdep Рік тому

    Brilliant, as always! And I could listen to that 'easy on the ear' voice all day!

  • @hornt3chgaming
    @hornt3chgaming 5 років тому

    Thanks for this video Brad. I like putting dashes before and after a comment so they stick out. I edited the CSS, HTML, and Javascript JSON files. What a time saver, thanks again.

  • @harmeepatel
    @harmeepatel 5 років тому +1

    I was just messing with it yesterday, and Bam, today this video pops up! Awsm💯

  • @KuhorevLeonid
    @KuhorevLeonid 5 років тому +2

    Hey Brad, thanks a lot for the video, that's a really helpful one! The only thing I noticed that in order to properly escape the PORT variable inside of the template literals I had to make a "double escape": `Server running on port ${${PORT}}`

  • @Ebbzzor
    @Ebbzzor 5 років тому +20

    Weird how I worked on a bunch of custom snippets a few hours ago and then you released this vid rofl

  • @eugenemusebe4963
    @eugenemusebe4963 5 років тому +2

    Was all ready for this..thanks brad

  • @methkalkhalawi2813
    @methkalkhalawi2813 5 років тому

    Hey Brad, I want to say that you are making the best content regarding web tutorials on the whole of youtube. Can you make a series of making web apps with Django? I would be very grateful. Thanks, man for existing on youtube

  • @Diewux
    @Diewux 5 років тому

    where I was before... been developing for long time, never ever tried those, now gonna be hella efficient, thanks

  • @kerryd2060
    @kerryd2060 5 років тому +12

    I'm in your Udemy courses and they're great! I'm happy to have found your Udemy courses and your UA-cam channel. (-:

  • @jackdavies1960
    @jackdavies1960 2 роки тому

    For anyone else who had the issue of VSCode not suggesting default dropdown suggestions after using a custom snippet (e.g. typing "doc" and it suggesting "document"), set the tab stop to $0 rather than $1. Turns out they count from 0, so it won't "exit snippet mode" until you hit tab 1 more time if you use $1 as the first tab stop. :)

  • @yahyeabdirashid9716
    @yahyeabdirashid9716 3 роки тому

    the "tab" thing is very cool thanks

  • @aaradhanah5059
    @aaradhanah5059 4 роки тому

    Whenever I need help bred is always there for me, Thanks a lot!

  • @josephelgazar4229
    @josephelgazar4229 5 років тому

    I like the idea of the productivity videos you mentioned at the end, looking forward to seeing those.

  • @mingyjj
    @mingyjj 3 роки тому

    This is one of those "once you know" type things... It's obvious how it works, but for some reason not very intuitive. Great video man!!

  • @BillWhammers
    @BillWhammers 2 роки тому

    this really helped me! thanks a hell of a lot!

  • @Pareshbpatel
    @Pareshbpatel 3 роки тому

    Excellent introduction to creating and using snippets in VSC. Thanks, Brad
    {2021-09-07}

  • @Hemmohammad
    @Hemmohammad 5 років тому

    Twitter Notification + UA-cam new upload from Brad Traversy ❤💙💚

  • @SleazyNice
    @SleazyNice 5 років тому +1

    Reactjs Code Snippets and Simple React Snippets are good alternatives to ES7 React/Redux/GraphQL/React-Native snippets.
    You can install all three if you want to. You will get a choice in a drop-down list.
    Use CRL + Space to get a preview.

  • @zubairfarooq9545
    @zubairfarooq9545 5 років тому

    Haha Thanks, Man, Today I was thinking about learning VS Code and here we go. Love from Pakistan

  • @notjasonknott
    @notjasonknott 5 років тому +2

    Haha this is perfect timing. I was just looking into making something like this for myself

  • @phpmysql2007
    @phpmysql2007 3 роки тому

    Thanks for doing this man it’s helpful

  • @shamirmohammad3737
    @shamirmohammad3737 4 роки тому +1

    Thanks for great tutorial! as I see on the video how to jumping to the next block in vs code?

  • @88Timur88Bahmudov88
    @88Timur88Bahmudov88 3 роки тому

    There's vs code extension called easy-snippet, it's much easier to create and manage snippets with it!

  • @la3el
    @la3el 2 роки тому

    👍Very helpful! Is there also a way to insert a tab stop and when it is entered that the same is automatically inscribed in another place?

  • @abhishekbharti4358
    @abhishekbharti4358 5 років тому +1

    You are doing very good work sir thank you very much I have learned a lot from your videos

  • @WebDevSHORTS
    @WebDevSHORTS 5 років тому

    This is excellent! Thanks Brad!

  • @k1ngjulien_
    @k1ngjulien_ 5 років тому +2

    Thanks! This is really helpful.
    You forgot the link to the VSCode Extension video in the description tho ;D

    • @sergeynazarov2473
      @sergeynazarov2473 5 років тому

      Snippet making is an inner VS Code functionality (through F1) and now I know how to use it, great thanks to BT

  • @oussamasethoum2755
    @oussamasethoum2755 3 роки тому

    Again thank you very much Brad.

  • @dchannel7516
    @dchannel7516 2 роки тому

    Thank you for this video. Very helpful

  • @chipmunkshqip1423
    @chipmunkshqip1423 5 років тому +1

    Microsoft must pay you for this video ♥

    • @CoryMcaboy
      @CoryMcaboy 5 років тому

      If that were the case, he would be on Windows :)

  • @russelltompkins9283
    @russelltompkins9283 5 років тому

    Great topic and very well presented Brad. I really enjoy your videos; I'm also in several of your Udemy courses. Thanks for your instructional videos, always top notch!

  • @ironmanlifts
    @ironmanlifts 4 роки тому

    Thanks Brad. Is there a way I can pass a number as an argument to the snippet ? For example: array(3) --> let $1 = [ $2, $3, $4, $5 ] .... the work around would be to duplicate the snippets with arrays by giving them each a number where array2 ---> let $1 = [$2, $3]. If I could pass an argument this would come in handy for objects where you have alot of name :value.

  • @IvoryEatsTheWorld7
    @IvoryEatsTheWorld7 5 років тому

    Thank you so much Brad!! You´re a hero

  • @achrefabdeljalil6371
    @achrefabdeljalil6371 5 років тому

    a looooooooooooooooooooooooooooooooooooot of thanks Brad this will facilitate my work ❤❤❤❤

  • @jasperburchfield2028
    @jasperburchfield2028 Рік тому

    Dreamweaver snippets were so much easier, you just select the snippet you want from a list and it pastes it at your cursor. Is there an extension in vs code that does that?

  • @Tattikanava
    @Tattikanava 5 років тому

    Thanks again brad for this awesome free content

  • @LordValtrius
    @LordValtrius 5 років тому +1

    I noticed at the end that the JS variable inside the backticks was converted simply to PORT. How you write the ${PORT} inside the snippet so it's not converted to a snippet tabstop?

  • @PepeSi7via
    @PepeSi7via 3 роки тому

    Are there any speech to text plugins for VScode that could incorporate this? Also I noticed that when you are tabbing through a snippet, you can't invoke other snippets like your "cl" you tried to do??

  • @sangnt92
    @sangnt92 3 роки тому

    Thank you, it help me a lot

  • @hanyanglee9018
    @hanyanglee9018 4 роки тому

    Thanks. Very helpful. Btw, any video on how to create snippet for visual studio? I just set up 2017 for ue4 and wondering the same function in vs 2017.

  • @riskzerobeatz
    @riskzerobeatz 5 років тому

    nice tut. Thanks Brad :D

  • @jashanbansal2613
    @jashanbansal2613 5 років тому +2

    You are Awesome Brad😎

  • @whiteWallism
    @whiteWallism 2 роки тому

    Cool thank you for the vid.
    Is there any possibility to extend the array function with the type of the array onto the type of the generated param? (Typescript)

  • @latelotus
    @latelotus 5 років тому

    This is so cool! Quick question, Brad. Whenever you use curly braces, VS code spaces it out perfectly for you. How do you make that happen. Ive been looking all around to see how you do that.

  • @DesignMedium
    @DesignMedium 5 років тому

    This is great! Thank you

  • @xSayllusx
    @xSayllusx 5 років тому

    Hey Brad, do u think u can do a video about scaling an app? Like most tutorials u see around are working prototypes but really I don't think they would hold up if u throw a few thousand users at them. What do u do when u wanna scale an app for hundreds of concurrent users for instance?

  • @ahmedbinmariam3684
    @ahmedbinmariam3684 3 роки тому

    Thanks a lot, This helped me to gain a lot of time 👍

  • @liviuc1946
    @liviuc1946 5 років тому +1

    "Server running on port PORT" Wasn't that supposed to change to 8000? Or you need to press tab again?

  • @pamelachristina
    @pamelachristina 4 роки тому

    Newbie here. Would I have to add the json file to every new project folder to access the snippets? Can I save it globally somehow?

  • @satyajeetkumarjha1482
    @satyajeetkumarjha1482 5 років тому

    Hey Brad .Will you be making any course on golang on Udemy ?

  • @francovenica1531
    @francovenica1531 4 роки тому

    It wasn't working for me, but i think is because the file I was trying to use is labeled as react code (it shows that "atom" icon) and not a js file that is what I needed, So I created a global snipped and it finally worked

  • @shaharrefaelshoshany9442
    @shaharrefaelshoshany9442 2 роки тому

    Thanks, great tutorial

  • @rinatvaliullov3247
    @rinatvaliullov3247 5 років тому +6

    Cool! Thanks. But the last variable "PORT" in the last snippet "expsrv" wasn't formatted correctly (Template Strings)

    • @darkomega2981
      @darkomega2981 5 років тому +6

      ${${PORT}} to format it correctly

    • @firedforfighting
      @firedforfighting 5 років тому +1

      @@darkomega2981 an alternative way is \\$ as in console.log(`Server Running On Port \\${PORT}`));"

  • @metaorior
    @metaorior 5 років тому

    brad pls teach us c++ i'm crying with these videos on youtube there is no single good tutorial omg

    • @prshendra
      @prshendra 5 років тому

      There is a good channel specifically on c++ called "The Cherno Project". I learned c++ a lot from him. He is also really good at teaching.

  • @thenewtechguy8526
    @thenewtechguy8526 5 років тому

    Can you make a vscode playlist of all your vscode tutorials>?

  • @chamir4614
    @chamir4614 5 років тому

    Hi, havent think about making a custom terminal as vscode`s?

  •  5 років тому

    Why 99% of videos about snippets are with js? I try to use that snippet-generator.app to create HTML code, but it gives me an error. I can't know if the syntax is wrong because there are no videos with HTML examples. Anyway, thanks for the video

  • @toanhocmuonnoi
    @toanhocmuonnoi 2 роки тому

    Hi admin
    I'm trying to generate a snippet in VSCode like this:
    "example":{
    "prefix": "example",
    "body": [
    "{$1$}"
    ]
    }
    And I get the output as: {$}.
    But the result I want is: {$1$}. So what can I do? Thanks.

  • @taufiqsept
    @taufiqsept 3 роки тому

    How do you get the suggestion drop list after typing in cl? Mine doesn't show up anything.

  • @kuldeeppatel3883
    @kuldeeppatel3883 4 роки тому

    Hello sir. i have question. I have make it snippet code in my vs code. How i share with another person or how to save my snippet code or if i uninstall vs code after install vs code so my snippet code as well or delete all my snippet code?

  • @hassaniyouness8024
    @hassaniyouness8024 4 роки тому

    Thank you soooo much Brad

  • @zshravan1739
    @zshravan1739 5 років тому

    Brad Please also make a video on how to debug the node js application in vs code with possible example.

  • @zomars
    @zomars 5 років тому

    On your last snippet the ${PORT} Was taken as a placeholder you need to escape it maybe.

  • @dean6046
    @dean6046 5 років тому

    Awesome, thank you!

  • @nashrampy
    @nashrampy 5 років тому

    Thank You. Brad!

  • @damirzhanzakov
    @damirzhanzakov 3 роки тому

    Thank you so much!

  • @kameshkotwani
    @kameshkotwani 5 років тому +9

    Please Add Authentication in your MERN Stack App please. Sir!

    • @kameshkotwani
      @kameshkotwani 5 років тому

      @@galishnikov_ru I'm not talking about the udemy course, He has a Learn the MERN Stack playlist in youtube, I want to have authentication in that.. Is that in the course? Cuz, I'm not enrolled in that..

    • @WinterSnowism
      @WinterSnowism 5 років тому

      @@kameshkotwani Yes it does have the authentication part. Check out www.udemy.com/mern-stack-front-to-back/

  • @Anvesh2013
    @Anvesh2013 5 років тому

    Line 11.. the inerpolated PORT isn't showing up?

  • @pandalanhukuk804
    @pandalanhukuk804 5 років тому

    Hi,
    are you also covering someday IT-Security in WebDev? Cheers Happy weekend.

  • @EdgarJRojasL
    @EdgarJRojasL 4 роки тому

    HI. It doesn't works for me when I try to get it to a new Javascript file, it's failed.

  • @ashutoshpanda4336
    @ashutoshpanda4336 5 років тому +1

    I'm loving it 😍😍😍😍😍

  • @arnoldoumana3932
    @arnoldoumana3932 5 років тому

    Can you make a course in the new Ionic 4

  • @Y.Bergamot
    @Y.Bergamot 3 роки тому

    is HTML the same as a snipping code?

  • @pranaychandra8016
    @pranaychandra8016 4 роки тому

    not able to get the snippet after writing the prefix.

  • @r1d3rzz97
    @r1d3rzz97 3 роки тому

    useful Method Thanks.

  • @veganath
    @veganath 5 років тому

    Wonderful thanks

  • @bapluda
    @bapluda 2 роки тому

    In the last snippet the ${PORT} became just PORT. You probably need to escape the $.

  • @isaidstream4547
    @isaidstream4547 5 років тому +1

    Great but I would like to change the colour of my snippets :(

  • @vadapallichaitu8799
    @vadapallichaitu8799 4 роки тому

    Can we create an entire file into snippet, because it's way too large

  • @mdubaidullah2794
    @mdubaidullah2794 3 роки тому

    amazing bro!!!

  • @ManojBaruahadams
    @ManojBaruahadams 4 роки тому

    Pretty useful stuff (y).

  • @Dogdogdogdog1234
    @Dogdogdogdog1234 5 років тому

    "If you understood artificial intelligence, how valuable would you be?"

  • @nogombrate
    @nogombrate 2 роки тому

    I use manny snippets but for example after i use my $1 and tab to $2 my text is higlighted and autocompleat dont work again unless i click esc anyone know how to fix that

  • @SalmanAGhani
    @SalmanAGhani 5 років тому +1

    1 min silence for those who disliked this.

  • @continental_drift
    @continental_drift 5 років тому

    Where can I find all of the snippets that come with VCSode.
    I tried your example "people." and I always get.
    --------------------------
    import { prependOnceListener } from "cluster";
    prependOnceListener.
    ------------------------------------------
    as soon as I type the period. I have found some snippets that I have disabled/uninstalled but this is really annoying.
    Does anyone know where I can find this snippet?
    Thanks

  • @LoveKeyKiss
    @LoveKeyKiss 5 років тому

    Does anybody know how you can create your own custom vs code snippets that use multiplication like the snippets Emmet gives your...for example:
    li*2 wil output:
    does anybody know how you can make your own snippets that work like that?
    and a follow up question: How could a create something like when I write m25 it gives me margin:25px; but if I writeany other number it give me that number after "margin:" ?

  • @herbertk9266
    @herbertk9266 5 років тому

    Thks Brad

  • @cla041054
    @cla041054 5 років тому

    I’ve do this in vim alot

  • @21thTek
    @21thTek 4 роки тому

    Alway excelent !!!

  • @lightxlampax
    @lightxlampax 4 роки тому

    Thank you! ♡ ♥💕

  • @callmesuraj4257
    @callmesuraj4257 3 роки тому

    Tq so much bro...

  • @tuananhdo1870
    @tuananhdo1870 5 років тому

    Vs Code have extension to create snippet