Skip to content

editor: Add comment_on_empty_lines setting for multi-line comment toggle#60785

Open
NsdHSO wants to merge 3 commits into
zed-industries:mainfrom
NsdHSO:added-possibilities-to-allow-the-comment-line
Open

editor: Add comment_on_empty_lines setting for multi-line comment toggle#60785
NsdHSO wants to merge 3 commits into
zed-industries:mainfrom
NsdHSO:added-possibilities-to-allow-the-comment-line

Conversation

@NsdHSO

@NsdHSO NsdHSO commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

This addresses #60738 — when toggling comments on a multi-line selection, empty lines are skipped instead of getting comment markers.

Adds a new setting comment_on_empty_lines (default: false). When enabled, blank lines within the selection also receive // at the minimum ind

entation column, matching VS Code behavior.

Changes:

Release Notes:

  • Added comment_on_empty_lines setting to include blank lines when toggling comments in multi-line selections

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant