I\'m using bootstrap 5 with angular and I add style and script to angular.json but the problem in VS Code it does not recognize the bootstrap classes.
Reverted to v1.3.3 of 'HTML/CSS Support' extension until sorted
first uninstall HTML CSS support and then reload it And i am 100% sure that it will work actually HTML CSS support sometime checks your HTML CSS code and give error if there is false positive
Just turn off CSS validation in settings.json.
I had the same problem. It turned out to be an issue with the same 'HTML/CSS Support' extension mentioned in this answer and this answer. It looks like there have been 7 different releases for that extension in the last few days. v1.3.3 seems to be the latest working version of the extension.
Uninstall this extension named "HTML CSS Support" and then reload. It worked for me, I hope it would work for you as well.
Issue with extension "HTML CSS Support" Uninstall it or use an older verions.