[folding] Collapse ending brace to the same line
See original GitHub issueConsider a large JavaScript file
function a() {
...
}
function b() {
...
}
function c() {
...
}
and so on...
Collapsing all currently yields:
function a() { ...
}
function b() { ...
}
function c() { ...
}
and so on...
This would be more readable if the closing brace was on the same line:
function a() { ... }
function b() { ... }
function c() { ... }
and so on...
Here is how other prominent editors handle the above:
Atom
Brackets
Sublime Text 3
VS Code
Issue Analytics
- State:
- Created 8 years ago
- Reactions:295
- Comments:80 (24 by maintainers)
Top Results From Across the Web
vscode code folding not showing closing brace - Stack Overflow
foldingStrategy ": "auto" the block-closing bracket and everything after on the same line gets eaten up. Unlike it is with "editor.
Read more >Collapse vim folds to a single line, similar to Atom or Sublime ...
In Vim, all lines within a fold will be collapsed to a single line, ... (e.g. it will fail if the end statement...
Read more >Language Configuration Guide - Visual Studio Code
A folding region starts when a line has a smaller indent than one or more following lines, and ends when there is a...
Read more >Folding sections - VS Code Can Do That - Workshop - GitBook
Use VS Code's folding feature to fold the svg lines. Put your cursor anywhere on the line ... On the line just above...
Read more >Folding - Vim Tips Wiki - Fandom
Folding methods · manual – folds must be defined by entering commands (such as zf) · indent – groups of lines with the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has been open for over 3 years now, and no progress on getting this implemented. It’s sad that such an amazing editor doesn’t have this feature…
Edit: It has also been in the backlog queue for 3 years, and it’s one of the oldest to be there…
I’m for the current model, but since people still think there is something to be corrected I think a preference is in order, something like
editor.foldingConsumeLastLine: bool