没有在VScode和styled components中的CSS自动完成功能

huangapple go评论60阅读模式
英文:

No CSS auto-complete with VScode and styled components

问题

I am working with styled-components in a jsx file, when suddenly the auto-completion(emmet?) disappeared. I have the VScode styled-component extension and can't figure out what happened.

它只会自动完成HTML属性。

I miss it! and I miss being able to click ctrl+space to see my options

我想它!我也想能够点击ctrl+space来查看我的选项。

send help.this is how it looks like when trying to add padding

send help.这是在尝试添加填充时的外观

this is how i expect it to work

这是我期望它工作的方式

I have vscode-styled-components extension installed

我已经安装了vscode-styled-components扩展

Also I set

此外,我设置了

"emmet.triggerExpansionOnTab": true

英文:

I am working with styled-components in a jsx file, when suddenly the auto-completion(emmet?) disappeared. I have the VScode styled-component extension and can't figure out what happened.

it only auto-completes to html properties.

I miss it! and I miss being able to click ctrl+space to see my options

send help.this is how it looks like when trying to add padding

this is how i expect it to work

I have vscode-styled-components extension installed

Also I set

"emmet.triggerExpansionOnTab": true

答案1

得分: 1

同样的事情发生在我身上。

如果你正在使用版本1.77.0,对我来说有效的方法是回到VSCode的1.76.2版本。

在“帮助” > “关于”中查看你的版本。

链接:https://code.visualstudio.com/updates/v1_76

英文:

The same thing happened to me.

If you're using version 1.77.0, what worked for me was going back to version 1.76.2 of VSCode.

Look at your version in Help > About

https://code.visualstudio.com/updates/v1_76

答案2

得分: 0

我也遇到了同样的问题,我只是将 vscode-styled-components 扩展的版本降级到 1.7.5,然后手动更新到当前版本 1.7.8,这对我有效。

英文:

I also had the same issue
and I just downgraded the version of vscode-styled-components extension to 1.7.5 and then updated it manually to the current version-1.7.8 and it worked for me.

huangapple
  • 本文由 发表于 2023年3月31日 18:42:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/75897608.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定