B
B
bormor2019-08-23 17:23:23
JavaScript
bormor, 2019-08-23 17:23:23

How to display code like `${MOCK_SERVER}/posts/` in VSCode snippets? those. how to escape characters ${...}?

Option

"test": {
  "prefix": "test",
  "body": [
    "`${MOCK_SERVER}/posts/`"
  ],
  "description": "test"
}

Issues
`MOCK_SERVER/posts/`
instead of How it is possible to escape the disappeared characters? Variant "`\$\{MOCK_SERVER\}/posts/`" doesn't work
`${MOCK_SERVER}/posts/`

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danila, 2019-08-23
@bormor

"`\\${MOCK_SERVER\\}/posts/`"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question