R
R
Roman-Tik2020-06-16 21:22:39
Sass
Roman-Tik, 2020-06-16 21:22:39

How to use scss variables containing "$" character in VS Code snippets?

Greetings. The problem is that in snippets, the $ symbol is used to set the cursor position, and when displaying the text of the snippet, this symbol is not displayed. I tried to add \ before $ but it does not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Morev, 2020-06-16
@Roman-Tik

Hello. Screen with two slashes.

"test" : {
  "prefix": "test",
  "body": [
    "color: \\$color-primary;"
  ]
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question