-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continue comments #1730
Comments
This is a feature that I'm quite sorely missing. I'd love to see it get merged soon! |
I'll see if I can cleanup this PR in January. I've been quite busy lately. |
Not the same, but related: using
and I hit
Interestingly, |
A note regarding the implementation: vim also carries over the preceding whitespace of the current comment line.
This is very useful when writing comments with varying levels of indentation. |
Hey this really feels like it should be a config-switched feature, and probably disabled by default. This is a "breaking change" experience-wise, especially for people who don't want to use this feature. (For reference, my specific use case is writing doc comments for Rust struct fields. Most of the time they're just 1 line, and then when I hit newline I have to delete the comment characters before I write the field) |
@johnbchron I could try in the future to add a config option or this. But may I ask why you aren't satisfied by pressing |
@TornaxO7 The point is not that I don't like it, but that it's a breaking change for user experience. For people who don't want or expect this (not just me), there's no way to go back to the previous behavior unless we add a config option. Whether or not it's on by default is a different matter. |
Hi.
Describe your feature request
I'd like a feature like vim's setting
formatoptions=ro
, that is something that will continue a comment when you pressEnter
in insert mode or open a new line inside a comment.Thanks!
The text was updated successfully, but these errors were encountered: