How can vscode recognize this way of writing?

problem description

@component-namespace lu{
    @b row{
        box-sizing:border-box;
        position: relative;
        @utils-clearfix;

        @m flex{
            display: flex;
            &::after,
            &::before{
                display:none;
            }
        }
    }

I use this way to vscode error
Unknown at rule @ component-namespace
how to solve this, and the highlight of the code is not normal

what result do you expect? What is the error message actually seen?


are you writing less style in .css file? Just change the file suffix


I installed the easy sass plug-in, and then write the file suffix name as .sass. In addition, I don't know if you pasted it wrong, you wrote half of the curly braces.

Menu