Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code can't see css files in intellisense

I'm building a react app but when I import a .css file, the vscode doesn't show the file in the intellisense.

enter image description here

I'm not sure if this is a problem with vs code or something in my webpack config.

If you think that the webpack config file is important for this problem, I can post it on the question.

Edit:

When I add a .js or .jsx file, it appears normally, but .css files don't

enter image description here

I don't use any extensions for the paths.

like image 696
Vencovsky Avatar asked May 21 '19 15:05

Vencovsky


People also ask

Why is IntelliSense not working CSS?

If you find IntelliSense has stopped working, the language service may not be running. Try restarting VS Code and this should solve the issue. If you are still missing IntelliSense features after installing a language extension, open an issue in the repository of the language extension.

Why my CSS is not working in VS Code?

Why my CSS file is not working in VS code? The problem may be that your browser is caching the CSS file. If you're debugging with Edge, you can open the F12 tools and click on the Network tab. At the top, you'll find a button to "always refresh from server." Turn this on, and files won't be cached.

How do I enable VS Code in IntelliSense?

You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.) in JavaScript).


1 Answers

VS Code doesn't support path completion for all file types. But you should get this going with the Path Autocomplete extension.

like image 131
Christian Vorhemus Avatar answered Oct 18 '22 12:10

Christian Vorhemus