Option for extend_comment_on_newline
to only apply to multiline comments
#31604
josssch
started this conversation in
Feature Ideas / Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the latest stable release, support was added for extending multiline comments in languages that use the
/* ... */
syntax (#30768, #30808). I love this feature. However, due to its current dependence on theextend_comment_on_newline
setting, I won't be able to use it for now.To align Zed’s behavior with other editors (e.g., JetBrains, VSCode), I suggest either introducing a third setting option (e.g.,
"multiline"
) or decoupling the multiline behavior from the setting entirely. Multiline comments naturally will want to be extended, and if I don’t want to continue the comment, I’ll simply press Enter after the closing*/
.TL;DR: In VSCode and IntelliJ by default, pressing Enter on
//
comments does not extend them, but pressing Enter on/**
comments does. This distinction isn’t currently possible in Zed.Beta Was this translation helpful? Give feedback.
All reactions