我想在VS Code中创建一个片段,其中包含精确的字符串${code}.但是,当我以这种形式输入时,VS Code会尝试将其解释为片段参数.我应该如何正确地逃脱它?
我有以下用户片段:
{
/*
// Place your snippets for JavaScript React here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": …Run Code Online (Sandbox Code Playgroud)