Microsoft/vscode

[folder] Add empty line automatically

Open

#279,302 opened on Nov 25, 2025

View on GitHub
 (5 comments) (1 reaction) (1 assignee)TypeScript (10,221 forks)batch import
editor-foldingfeature-requesthelp wanted

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (Avg merge 11h 48m) (1,000 merged PRs in 30d)

Description

When the last class/function is collapsed, it's impossible to add a line by selecting the last character and pressing enter. You have to expand it, scroll to be bottom, put the cursor at the end and press enter. It would be much easier if the editor added an empty line auotmatically upon collapse, if the last class in the editor has no empty line at the end.

Contributor guide