vscode code folding not showing closing brace
Asked Answered
R

2

8

How do I make vscode editor show the closing braces of a folded code snippet enter image description here

The image above represents what I have in my editor. However, I want to be able to see the closing braces. Thanks in advance

Ruggiero answered 10/10, 2020 at 18:59 Comment(0)
R
8

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, when using "editor.foldingStrategy": "auto" the block-closing bracket and everything after on the same line gets eaten up. Unlike it is with "editor.foldingStrategy": "indentation". It can be extremely misleading, like for example in if else case:

enter image description here

VS. "editor.foldingStrategy": "indentation"

enter image description here

Ruggiero answered 15/11, 2020 at 20:5 Comment(0)
H
4

use this setting : "editor.foldingStrategy": "indentation" enter image description here

Heartbeat answered 16/3, 2023 at 8:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.