body is the JSON object that is stringified and inserted when the completion is selected by the user. Snippet syntax can be used inside strings literals to define tabstops, placeholders, and variables. If a string starts with ^, the string content will be inserted as-is, not stringified. You can use this to specify snippets for numbers and booleans.
添加调试选项时,
${workspaceFolder}
字符串被替换为空字符串.其中
"cwd": "${workspaceFolder}",
配置到 launch.json 前需要经过一次转换.body
语法: https://code.visualstudio.com/docs/languages/json#_json-schemas-settings应修改为:
"cwd": "^\"${workspaceFolder}\"",