vscode 代码折叠不显示右大括号

Ron*_*dwa 7 javascript code-folding visual-studio-code

如何让 vscode 编辑器显示折叠代码片段的右大括号 在此输入图像描述

上图代表了我编辑器中的内容。但是,我希望能够看到右大括号。提前致谢

Ron*_*dwa 7

The same issue was reported here https://github.com/microsoft/vscode/issues/47240, I got a fix from that page

Here is the specific comment that resolves the issue https://github.com/microsoft/vscode/issues/47240#issuecomment-379490218

Eyep,当使用 "editor.foldingStrategy": "auto" 时,块结束括号和同一行后面的所有内容都会被吃掉。与“editor.foldingStrategy”不同:“缩进”。它可能会产生极大的误导,例如在 if else 情况下:

在此输入图像描述

VS。"editor.foldingStrategy": "缩进"

在此输入图像描述