Ganbatte
Explore posts from serversKPCKevin Powell - Community
•Created by Ganbatte on 12/20/2023 in #front-end
Difficulty with Autocompletion for SCSS Variables in Visual Studio Code
I'm facing challenges with getting proper autocompletion for SCSS variables in Visual Studio Code. I have a separate SCSS file where I store all my variables (_variables.scss), and I'm importing them into another file (style.scss). However, despite using @use access these variables, the autocomplete doesn't seem to work efficiently.
Is there a recommended extension or configuration to enable accurate autocompletion for SCSS variables across files in Visual Studio Code? Currently, I'm manually referencing variables like variables.$variableName, which becomes cumbersome with a growing number of variables.
Any guidance or suggestions to streamline the autocompletion process for SCSS variables would be greatly appreciated!
If someone could provide an example of how to use SCSS and CSS variables in separate files while ensuring autocomplete works in VSCode, I'd greatly appreciate it.
8 replies