Code Fast with Emmet in VS Code!

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 21

  • @IainSimmons
    @IainSimmons Год назад +32

    One thing that might not be clear from watching this is that you often get tab stops after you expand the Emmet abbreviation. So for example, the three tags would each have a tab stop in between so you can enter some text, press tab and go to the next one, instead of trying to go down and across with your arrow keys.

  • @michaelgainford
    @michaelgainford Год назад +8

    Emmet is absolutely awesome.
    Work smarter, not harder.

  • @mortezafattahpour9678
    @mortezafattahpour9678 Год назад +44

    That lorem is not 20 characters, its 20 words

  • @dancehalllyrics1303
    @dancehalllyrics1303 Год назад +16

    How to add text to the element before creating it (note: this does NOT work with lorem ipsum (at least not in VS Code):
    Let’s say you want a with three s inside, which each contains an tag with some text.
    You’ll then write something like:
    ul>li*3>a[href=“#”]{Link 1}
    This will upon generation be:
    Link 1
    Link 1
    Link 1
    To take this one step further and getting each number to correspond to the number tag it’s inside of, simply write this:
    ul>li*3>a[href=“#”]{Link $}
    That’ll turn to this when generated:
    Link 1
    Link 2
    Link 3
    The “$” simply tells Emmet to count up to the number of generated elements (in this case three, since that’s number we multiplied by).

  • @michaelangellotti5741
    @michaelangellotti5741 Год назад +12

    Interesting. You should add the link to you description for ease of use. Thanks.

  • @inny2900
    @inny2900 Год назад

    Looks cool!

  • @michal19777
    @michal19777 Год назад +2

    Maybe links in desc or in comment?

  • @lokeshborole8997
    @lokeshborole8997 Год назад

    Does emmet only works when filename is index.html ?

  • @ConnorFTW
    @ConnorFTW Год назад

    Smart!

  • @deemon710
    @deemon710 Год назад

    That's cool and all but I can never remember this kinda sh*t when I'm it's a plausible time to use it.

  • @BlessedEmpire256
    @BlessedEmpire256 Год назад

    HOW DO I OPEN EMMIT

  • @rahulr9539
    @rahulr9539 Год назад

    you can also use content {$} before * to automatically generatr 1, 2, 3

  • @webapple1
    @webapple1 Год назад +3

    great if you straight up writing just HTML ... but who does that anymore

  • @ShivanshKaran
    @ShivanshKaran Год назад

    Where is the cheatsheet lol

  • @AbdulDanmalan
    @AbdulDanmalan Год назад

    Is it free?

  • @etcroot
    @etcroot Год назад

    Why are you impersonating vscode?

    • @twoboylx
      @twoboylx 11 месяцев назад

      they arent

  • @EgnachHelton
    @EgnachHelton Год назад +1

    I hate xml systax. Why don't we reinvent a better syntax like element(attr1=value1, attr2=value2) { /**children**/ }?

  • @elrisitas8508
    @elrisitas8508 Год назад +1

    low key useless
    most editors do the template thing already
    and the rest is kinda gimmicky