VS Code - 折叠代码块时隐藏右括号
VS Code - Hide Closing Bracket When Code Block is Folded
我正在使用 Visual Studio 代码并寻找一种方法来在代码块折叠时隐藏代码块的右括号,似乎找不到相应的设置,代码只是对我来说看起来不对,因为我已经习惯了具有这种行为的 Visual Studio IDE。
当前行为
预期行为
看看这个问题https://github.com/microsoft/vscode/issues/3352 [folding] Collapse ending brace to the same line #3352。它看起来不像正在处理中。
但在本期(接近尾声)中提到了一个扩展 explicit folding,您可以尝试获得您想要的。
在 VS 代码上安装 Explicit Folding 并在 JSON 文件上通过此设置并享受...
"explicitFolding.rules": {
"javascript": [
{
"begin": "{",
"end": "}"
},
{
"begin": "`",
"end": "`"
},
{
"foldLastLine": true
}
]
},
我正在使用 Visual Studio 代码并寻找一种方法来在代码块折叠时隐藏代码块的右括号,似乎找不到相应的设置,代码只是对我来说看起来不对,因为我已经习惯了具有这种行为的 Visual Studio IDE。
当前行为
预期行为
看看这个问题https://github.com/microsoft/vscode/issues/3352 [folding] Collapse ending brace to the same line #3352。它看起来不像正在处理中。
但在本期(接近尾声)中提到了一个扩展 explicit folding,您可以尝试获得您想要的。
在 VS 代码上安装 Explicit Folding 并在 JSON 文件上通过此设置并享受...
"explicitFolding.rules": {
"javascript": [
{
"begin": "{",
"end": "}"
},
{
"begin": "`",
"end": "`"
},
{
"foldLastLine": true
}
]
},