【发布时间】:2021-04-28 11:25:19
【问题描述】:
我在 VS Code 中有一个代码 sn-p,看起来像这样
"JS arrow function": {
"scope": "javascript, typescript",
"prefix": "af",
"body": [
"const ${1:name} = (${2:props}) => {",
" $3",
"}"
],
"description": "Create arrow function"
}
我想在$3 制表位之前有tabulation,但VS Code 显示错误:
字符串中的字符无效。控制字符必须转义。
同时将4 spaces 放在$3 之前可以正常工作,但我需要tabulation 完全用于我的eslint 配置。
有没有办法把tabulation放在那里?
【问题讨论】:
标签: javascript visual-studio-code eslint code-snippets vscode-snippets