Sla*_*.In 3 javascript code-snippets eslint visual-studio-code vscode-snippets
我在 VS Code 中有一个代码片段,看起来像这样
"JS arrow function": {
"scope": "javascript, typescript",
"prefix": "af",
"body": [
"const ${1:name} = (${2:props}) => {",
" $3",
"}"
],
"description": "Create arrow function"
}
Run Code Online (Sandbox Code Playgroud)
我想要在制表位tabulation之前有$3,但 VS Code 显示错误:
字符串中的无效字符。控制字符必须进行转义。
同时放在4 spaces前面$3工作得很好,但我需要tabulation我的 eslint 配置。
有办法放在tabulation那里吗?
Tim*_*ass 12
\t
这是转义的制表符。
"JS arrow function": {
"scope": "javascript, typescript",
"prefix": "af",
"body": [
"const ${1:name} = (${2:props}) => {",
"\t$3",
"}"
],
"description": "Create arrow function"
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3075 次 |
| 最近记录: |