S
S
Sergey Belousov2020-04-29 21:36:06
Sass
Sergey Belousov, 2020-04-29 21:36:06

Visual Studio Code doesn't understand Sass syntax, what's the problem?

The editor understands selectors with brackets as it should, but without brackets an error appears.
Installed the Sass plugin in the editor.
5ea9c900c546f464816734.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
ReActor Dmitry Vershansky, 2020-04-29
@Dante1970

SASS technology, as a technology for preprocessing (simplifying and expanding) writing cascading style sheets, has two syntactic options:
SASS and SCSS
SASS syntax is marked by the absence of syntactic characters: {}, ;
SCSS syntax, on the other hand, assumes native syntactic coding.
Once you have decided on which option you like, create files with the appropriate extension:
.scss or .sass

V
vanzhukov, 2020-04-30
@vanzhukov

because you are trying to write in Sass in a file with the scss extension. Create a sass file and write in Sass there.

R
Ramzza, 2020-07-26
@Ramzza

I have such a problem was solved by disabling sass lint in the vscode settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question