Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

619
Visualizações
VS code CSS class selector not found with angular and bootstrap 5 beta

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.

1

2

over 4 years ago · Santiago Trujillo
13 Respostas
Responde à pergunta

0

Install this extension https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css

Then in your .vscode/settings.json:

{
  "css.styleSheets": [
    "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0beta1/dist/css/bootstrap.min.css"
  ]
}

Restart vscode. Worked for me.

over 4 years ago · Santiago Trujillo Relatório

0

Uninstall this extension named "HTML CSS Support" and then reload. It worked for me, I hope it would work for you as well.

over 4 years ago · Santiago Trujillo Relatório

0

Check if extension "HTML CSS Support" got auto-updated. If it did, then it will ask for reloading of VS Code. Do it. Had exactly same issue today.

Update

That did not help.

Looks like the issue should have been solved with the next release of the extension, but still, some of the Problems are there. Check the github: https://github.com/ecmel/vscode-html-css/issues

In short, what you need to do is go to VS Code settings and switch from "User" to "Workspace". Then type "css settings" in settings search bar and open the exact same option under "Extensions". Click "CSS: Style Sheets", which will open settings.json for workspace and add your CSS files paths there. Hopefully it will solve all the Problems for you.

enter image description here

over 4 years ago · Santiago Trujillo Relatório

0

As said by others, uninstall the HTML CSS Support then reload VS code. You can use IntelliSense for CSS class names in HTML if you want, it provides CSS class name completion for the HTML class attribute based on the definitions found in your workspace or external files referenced through the link element. And gives you autocompletion for CSS class definitions that can be found in your workspace (defined in CSS files or the in the file types listed in the Supported Language Modes section)

over 4 years ago · Santiago Trujillo Relatório

0

enter image description here

Just turn off CSS validation in settings.json.

over 4 years ago · Santiago Trujillo Relatório

0

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.

over 4 years ago · Santiago Trujillo Relatório

0

Reverted to v1.3.3 of 'HTML/CSS Support' extension until sorted 👍 Works on my machine 😂

over 4 years ago · Santiago Trujillo Relatório

0

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

over 4 years ago · Santiago Trujillo Relatório

0

If you are using newer version of HTML CSS Support (>= 1.5.0), you can add the following css.validation settings to your settings.json which should clear this issue. Don't forget to reload VS Code after changing the settings though.

enter image description here

enter image description here

over 4 years ago · Santiago Trujillo Relatório

0

Downgrading the 'HTML CSS Support' extention to v1.3.3 will fix the problem.

over 4 years ago · Santiago Trujillo Relatório

0

Issue with extension "HTML CSS Support" Uninstall it or use an older verions.

over 4 years ago · Santiago Trujillo Relatório

0

I am using SCSS as a CSS preprocessor in the Angular project with Bootstrap5. I installed the following plugin and the problem was solved.

SCSS Everywhere

over 4 years ago · Santiago Trujillo Relatório

0

Now, using bootstrap 5 and angular 13.2.2, the HTML CSS support extension doesn't work.

However, IntelliSense for CSS class names in HTML works for me

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda