VS Code 在智能感知中看不到 css 文件 [英] VS Code can't see css files in intellisense
问题描述
我正在构建一个 React 应用程序,但是当我导入一个 .css
文件时,vscode 不会在智能感知中显示该文件.
I'm building a react app but when I import a .css
file, the vscode doesn't show the file in the intellisense.
我不确定这是 vs 代码的问题还是我的 webpack 配置中的问题.
I'm not sure if this is a problem with vs code or something in my webpack config.
如果你认为 webpack 配置文件对这个问题很重要,我可以把它贴在问题上.
If you think that the webpack config file is important for this problem, I can post it on the question.
当我添加一个 .js
或 .jsx
文件时,它正常显示,但 .css
文件没有
When I add a .js
or .jsx
file, it appears normally, but .css
files don't
我不为路径使用任何扩展名.
I don't use any extensions for the paths.
推荐答案
VS Code 不支持所有文件类型的路径补全.但是您应该使用路径自动完成扩展来实现这一点.
VS Code doesn't support path completion for all file types. But you should get this going with the Path Autocomplete extension.
这篇关于VS Code 在智能感知中看不到 css 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!