M?c ??nh s? không format ?c code trong blade laravel, ?? có th? format ???c gi?ng nh? html bình th??ng thì ae làm nh? sau:
??u tiên hãy ch?c ch?n r?ng vs code c?a ae ?ã cài ??t extension: Laravel Blade Snippets, n?u ch?a thì ae click vào tab Extensions và search Laravel Blade Snippets r?i cài ??t.
Ti?p theo m? settings: vào menu File / Preferences / Settings (ho?c phím t?t ctrl + , )
Click Extensions, trong ph?n Blade Configuration, tick vào Enable format blade file
T?t và m? l?i VS Code ?? thay ??i có hi?u l?c, m?i khi c?n format code trong laravel blade thì dùng phím t?t: Shift + Alt + F ho?c click ph?i ch?n Format Document
Done
Thank anh, ?úng cái em ?ang c?n, hí hí