Microsoft/vscode

[folder] Add empty line automatically

Open

#279302 opened on Nov 25, 2025

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

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