简体   繁体   English

VS Code 中的 Class 和 ID 自动完成问题

[英]Class and ID auto completion problem in VS Code

When I want to use a class or an ID that i have previously written in my html file, the auto completion does not work.当我想使用 class 或我之前在 html 文件中写入的 ID 时,自动完成功能不起作用。 It does not either work in the same html file or in css or js files.它不适用于同一个 html 文件或 css 或 js 文件。 Actually ctrl + space works in the same html file just for some classes, but not all of them , and also it is hard to always hit ctrl + space specially when it is not supposed to work always.实际上ctrl + space在同一个 html 文件中只适用于某些类,但不是所有类,而且当它不应该总是工作时,也很难总是特别点击ctrl + space

Here are the things I have tried:以下是我尝试过的事情:

  • Updating VS Code更新 VS 代码
  • Disabling all auto completion extensions禁用所有自动完成扩展
  • Enabling different extensions one by one一个个启用不同的扩展

I have searched so much and used different extensions, but none of them worked.我已经搜索了很多并使用了不同的扩展名,但它们都没有奏效。 Is there any solution somebody knows?有没有人知道的解决方案?

I was having same problem, I solved this using below extension:我遇到了同样的问题,我使用以下扩展解决了这个问题:

Extension 扩大

Also check bottom right of vs code..还要检查vs代码的右下角.. 这应该是 html

this should be html while writing html这应该是 html 写 html

Happy Coding!快乐编码!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM