@@worldoftulen5338 because you write a config file and you can also combine it with eslint, and everyone using that project will have the same formatting if you push crlf or tab spacing i will end your career xD
thx I was struggeling to switch html formater to prettier... and this command was helpfull @lang:html default formatter if you selected html formater by clicking on it when you press ctrl + shift + p and then click on 'document formater'.
I really dont click with prettier at all. Wanted to give it another chance yesterday - after almost none of my editor settings changed anything at all I tried configuring it via the config file for a workspace and it messed up even more like breaking every line after 80 characters(?!) even changing the setting didnt do anything. The testfile I used lost sooo much readability because of that. and all that because vscode default formatted cant live with chained methods in new lines lol. no more autoindenting the whole file for me then
Prettier does not respect my indentation setting. It very commonly formats HTML indentation poorly and it adds closing slashes to void elements - which is not a thing in HTML. The built in formatter is superior, unless you spend a long time configuring. And in any case, nicely styled code is sometimes simply not possible with simple automatic rules, you have to judge the situation by hand case by case. Would not recommend.
Yeah i did also the same, Selecting prettier as default formatter, format on save ticked.. Even in json says it sets on true, ctrl + s not working at all
prettier is the extension of every day, wdym
I never used it and don't know why it's everywhere. Can u explain, is prettier better than default vscode formatter? And why?
@@worldoftulen5338 because you write a config file and you can also combine it with eslint, and everyone using that project will have the same formatting
if you push crlf or tab spacing i will end your career xD
LOL
OMG. THIS IS LIFE CHANGING!
Yeah it's amazing...
Until you want something formated differently - which is always.
Then set your custom settings in the prettier config file
Extension of the week is obviously deserved but it needs a lifetime achievement award TBH
+ several years to my life
Yeah prettier is awesome
One of the best! Nice video. :)
bro ctrl+f is searching shortcut
Ctrl + K + F
I don't know why this channel is not getting any attention
Thank you
Prettier code formatting is the best
Hahaha i need this so bad.
thx I was struggeling to switch html formater to prettier... and this command was helpfull @lang:html default formatter if you selected html formater by clicking on it when you press ctrl + shift + p and then click on 'document formater'.
But it don't format predecessor directive in c++
No need when you use format on save :)))
That’s why it didn’t work, never set it as default
I really dont click with prettier at all. Wanted to give it another chance yesterday - after almost none of my editor settings changed anything at all I tried configuring it via the config file for a workspace and it messed up even more like breaking every line after 80 characters(?!) even changing the setting didnt do anything. The testfile I used lost sooo much readability because of that. and all that because vscode default formatted cant live with chained methods in new lines lol. no more autoindenting the whole file for me then
Dont activate this if you dont want conflict in git 😂 or must have all teammates
Спасибо огромное 40 минут не мог выяснить почему у меня не работает❤❤
Is there one for auto commenting?
Still don’t understand how you set prettier as the default formatted you move to quickly
can literally pause the video
It will messed up codes 😂
Is AI will replace programmers?... we don't talk about software engineer.
Yes, especially the the juniors. It was fun while it lasted
No it's not
Lol is that really a question?
Prettier does not respect my indentation setting. It very commonly formats HTML indentation poorly and it adds closing slashes to void elements - which is not a thing in HTML. The built in formatter is superior, unless you spend a long time configuring. And in any case, nicely styled code is sometimes simply not possible with simple automatic rules, you have to judge the situation by hand case by case. Would not recommend.
idk what the hell im doing wrong but i cant get this thing to work
Yeah i did also the same, Selecting prettier as default formatter, format on save ticked.. Even in json says it sets on true, ctrl + s not working at all