Are you using Prettier? (how to set up in VSCode to format on save)

แชร์
ฝัง

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

  • @smile4992
    @smile4992 ปีที่แล้ว +78

    another way to do this is: go to settings > search "default formatter" > select "prettier"

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

      thanks man

    • @ghandour2325
      @ghandour2325 9 หลายเดือนก่อน

      thanks bro

    • @TheBlackmanIsGod
      @TheBlackmanIsGod 7 หลายเดือนก่อน +2

      I think things change with The programs so fast that these videos aren’t accurate even after just a couple months, the steps seem to change, the interface seems to be different.

    • @Ujjwal_Blunders
      @Ujjwal_Blunders 4 หลายเดือนก่อน

      Thanks bro

    • @riteshmishra3773
      @riteshmishra3773 3 หลายเดือนก่อน

      This helped thanks a lot.

  • @VikiSil
    @VikiSil 8 หลายเดือนก่อน +24

    I googled 'how to add prettier to user settings' and got a video that says: "Go ahead and google that if you cannot find it".
    Here's a free comment - you're welcome for the engagement.

    • @jam4l
      @jam4l 8 หลายเดือนก่อน

      LoL

  • @boem231
    @boem231 ปีที่แล้ว +9

    VSCode has formatting built in, even on save. You don't need prettier for that. Prettier is just an extension that formats your code in a specific way

    • @Rijal181
      @Rijal181 8 หลายเดือนก่อน

      How?

    • @boem231
      @boem231 8 หลายเดือนก่อน

      @@Rijal181 search it online, there's a setting for it. Something like 'format on save'

    • @crowchase6703
      @crowchase6703 6 หลายเดือนก่อน

      right click anywhere inside the file where the code is, then select format document.@@Rijal181

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

    Thanks my man. Had this on my other computer, couldn't remember how to do it on my new one.

  • @robertogutierrez7305
    @robertogutierrez7305 29 วันที่ผ่านมา

    It looks like for HTML its better to use the default fomatter, i keep getting weird whitespaces and line jumps in a randomish way with prettier added.

  • @SeanErixon
    @SeanErixon 2 หลายเดือนก่อน

    How do you get your brackets to be multi-colored like that?

  • @lucaistmuell3398
    @lucaistmuell3398 2 หลายเดือนก่อน

    Why so many displikes? Worked perfectly for me

  • @zzinue
    @zzinue 3 หลายเดือนก่อน

    Thanks for the short

  • @ahmed_ekramy_24
    @ahmed_ekramy_24 3 หลายเดือนก่อน

    Thanks it works typing form Egypt 🇪🇬

  • @software-101
    @software-101 8 หลายเดือนก่อน +1

    It was usefull to me! Thanks!

  • @axrordev
    @axrordev ปีที่แล้ว +7

    be faster next time

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

    What if you don’t have a .prettierrc file in your workspace, will it still work?

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

      Yes

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

      It'll just use the default settings

  • @LOL-cp6js
    @LOL-cp6js 9 หลายเดือนก่อน

    helpful… THX

  • @TheBlackmanIsGod
    @TheBlackmanIsGod 8 หลายเดือนก่อน +3

    Boooo we need all the steps, you skipped over the most important things, we need a real walk through

  • @user-uq2xk8lx7l
    @user-uq2xk8lx7l 6 หลายเดือนก่อน +2

    whats the point in doing a tutorial, and then telling us to find something ourselves hahahaha

  • @midnightwafflezz
    @midnightwafflezz 7 หลายเดือนก่อน +2

    Come on brother, you need a little more commitment, like if your not going to do a complete walkthrough to help others then don’t do it, all or nothing at all

    • @zachgoll
      @zachgoll  7 หลายเดือนก่อน +1

      My man, I have a 21-hour FREE course teaching people how to code on this channel 😂

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

    Definitely? Prettier? That's a very opinionated view.
    Due to the nature of prettier (being a OPINIONATED formatter), it's a personal choice. I very much DONT recommend ever using it.

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

      What do you recommend then?

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

      @@zachgoll maybe the built in formatter?