IssueRaiser

[folding] Collapse ending brace to the same line

Consider a large JavaScript file ``` js function a() { ... } function b() { ... } function c() { ... } and so on... ``` Collapsing all currently yields: ``` js function a() { ... } function b() { ... } function c() { ... } and so on... ``` This would be more readable if the closing brace was on the same line: ``` js function a() { ... } function b() { ... } function c() { ... } and so on... ``` --- Here is how other prominent editors handle the above: **Atom** ![image](https://cloud.githubusercontent.com/assets/2193314/13259023/7d4c38d2-da0a-11e5-9407-f1c7de7c4a61.png) **Brackets** ![image](https://cloud.githubusercontent.com/assets/2193314/13259033/8d71e2f2-da0a-11e5-9934-378ecb450179.png) **Sublime Text 3** ![image](https://cloud.githubusercontent.com/assets/2193314/13259075/aeb3e97e-da0a-11e5-9b0a-7ff709146520.png) --- **VS Code** ![image](https://cloud.githubusercontent.com/assets/2193314/13259189/29190a8c-da0b-11e5-97bd-3513fb837097.png)

Posted by Tyriar on Feb 23, 2016, 4:55 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments

github (Other)

[folding] Collapse ending brace to the same line

TyriarFeb 23, 2016, 4:55 PM

Consider a large JavaScript file ``` js function a() { ... } function b() { ... } function c() { ... } and so on... ``` Collapsing all currently yields: ``` js function a() { ... } function b() { ... } function c() { ... } and so on... ``` This would be more readable if the closing brace was on the same line: ``` js function a() { ... } function b() { ... } function c() { ... } and so on... ``` --- Here is how other prominent editors handle the above: **Atom** ![image](https://cloud.githubusercontent.com/assets/2193314/13259023/7d4c38d2-da0a-11e5-9407-f1c7de7c4a61.png) **Brackets** ![image](https://cloud.githubusercontent.com/assets/2193314/13259033/8d71e2f2-da0a-11e5-9934-378ecb450179.png) **Sublime Text 3** ![image](https://cloud.githubusercontent.com/assets/2193314/13259075/aeb3e97e-da0a-11e5-9b0a-7ff709146520.png) --- **VS Code** ![image](https://cloud.githubusercontent.com/assets/2193314/13259189/29190a8c-da0b-11e5-97bd-3513fb837097.png)

Comments (0)

No comments yet. Start the discussion.

Comment on this issue