Effortless Snippet Creation - VSCode Pro Tip

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024

ความคิดเห็น • 32

  • @kesterbelgrove818
    @kesterbelgrove818 2 ปีที่แล้ว

    THANK YOU!! YES I AM SHOUTING THANK YOU. This is so much better than the default snippet, which by the way is not working in Mac M1 pro. So I am glad this much better version is what I now get to use.

  • @Omar_Al_Seddik
    @Omar_Al_Seddik ปีที่แล้ว

    Thank you so much! This is definitely one of my favorite extensions by far.

  • @VegardOlsen-p9o
    @VegardOlsen-p9o 9 หลายเดือนก่อน

    Thank you for a great presentation of a really useful extension. Do you know how to easily manage global snippets with this? I tried to use Scope Manager to get the global file. I got edit access eventually but that's all.

  • @ASTERisk44946
    @ASTERisk44946 ปีที่แล้ว

    You sir just brought the next big thing for ue5.1

  •  10 หลายเดือนก่อน

    Thank you. However, it appears as if the snippet only works within the file where it was created and not in a new project. How can the custom snippet be accessed globally?

  • @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.

  • @jeremiahpepin8254
    @jeremiahpepin8254 ปีที่แล้ว

    wow this is great. BTW you can add place holders and they still work. EX: ${1:here} put this wherever you want the curser to start.

  • @albertodeagostini6143
    @albertodeagostini6143 2 ปีที่แล้ว

    this is cool, better than other snippet "packages" plugins

  • @vladmacovei1619
    @vladmacovei1619 2 ปีที่แล้ว +1

    If the snippet has some placeholders such as $TM_SELECTED_TEXT or $SELECTION and then you use the Command palette > 'Surround With Snippet' feature the productivity increases by 10x😉
    More info about snippets here code.visualstudio.com/docs/editor/userdefinedsnippets But i warn you! This is a deep rabbit hole, with regex and stuff.
    An alternative snippet tool is marketplace.visualstudio.com/items?itemName=yatki.vscode-surround but it keeps it's own snippets that you need to manually add/override in settings.json and they don't appear in the Easy Snippet plugin. At the moment is still use this plugin because it has a keyboard shortcut set that I've learned and it is marginally faster because the used snippets are ordered based on last used not alphabetically, but I will probably switch to the "Surround With Snippet" feature when I'll find out how to better customize it.

  • @JohnWickXD
    @JohnWickXD ปีที่แล้ว

    Thanku so much bro❤ i needed exactly this functionality 😊

  • @gyurxi551
    @gyurxi551 11 หลายเดือนก่อน

    Doesn't work for me. It doesn't categorize types and when I try to apply it does not suggest similar. Restarted VSC. Still not working.

  • @AchmedFaboulla
    @AchmedFaboulla 2 ปีที่แล้ว

    Thx for awesome content. I'v been curious for a while, how do you make these super quick console.log after having som variable marked? cheers

  • @JakubNovak
    @JakubNovak ปีที่แล้ว

    Any idea how to use global or project or environmental variables in snippets? Let's say I have a project that use textdomain XXX for translations and I would like to write snippets for functions like __() or _e() or esc_html(), etc... and they need a second argument to be automatically that XXX, so in next project I can easily change it in a single place and not in every single snippet again and again

  • @ujuzitek301
    @ujuzitek301 ปีที่แล้ว

    Great nuggets, great presentation skills all the way around. I'm subscribing though I have no interest in Vue!

  • @arnolddevmode9603
    @arnolddevmode9603 2 ปีที่แล้ว

    if i switch in another laptop will the snippets be there too?

    • @Dreku22
      @Dreku22 2 ปีที่แล้ว +1

      if you're logged into vs code and sync your account/settings i think so

  • @khandoor7228
    @khandoor7228 2 ปีที่แล้ว

    awesome love this!

  • @boomshakalaka656
    @boomshakalaka656 2 ปีที่แล้ว

    yes finally l can stop retyping stuff everytime 😃

  • @francescocommisso5352
    @francescocommisso5352 2 ปีที่แล้ว

    Nothing like a little code duplication in the morning

    • @syntaxfm
      @syntaxfm  2 ปีที่แล้ว

      Are you saying this is a bad thing?

    • @francescocommisso5352
      @francescocommisso5352 2 ปีที่แล้ว

      @@syntaxfm not necessarily. If this is used mainly for front end development. But I’m not a fan of copy duplicating code Willy nilly. Even though I do it all the time myself lol.

    • @syntaxfm
      @syntaxfm  2 ปีที่แล้ว +2

      @@francescocommisso5352 Usually snippets are useful for structure, patterns and boilerplate, not things that would make your codebase "wet"

  • @yolla_4
    @yolla_4 2 ปีที่แล้ว

    nice bro

  • @edsheeran1941
    @edsheeran1941 5 หลายเดือนก่อน

    this read like an ad but its too good for me not to use

    • @syntaxfm
      @syntaxfm  5 หลายเดือนก่อน

      When I get excited it can def sound like an add.

  • @ASTERisk44946
    @ASTERisk44946 ปีที่แล้ว

    I'll be back

  • @dimitrisqq
    @dimitrisqq ปีที่แล้ว

    🔥🔥🔥🔥🔥🔥🔥🔥🔥

  • @chukwuemekaorji9331
    @chukwuemekaorji9331 2 ปีที่แล้ว

    Amazing I love them all It was and really is very helpful Thanks I love your theme and font @ LevelUpTuts

  • @ashish_prajapati_tr
    @ashish_prajapati_tr 2 ปีที่แล้ว

    i love this vs code theme.
    What's name of the theme?

  • @VegardOlsen-p9o
    @VegardOlsen-p9o 9 หลายเดือนก่อน

    Thank you for a great presentation of a really useful extension. Do you know how to easily manage global snippets with this? I tried to use Scope Manager to get the global file. I got edit access eventually but that's all.