Skip to content
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

Prefix new block comment lines with block comment character #10663

Closed
victorz opened this issue May 2, 2024 · 2 comments
Closed

Prefix new block comment lines with block comment character #10663

victorz opened this issue May 2, 2024 · 2 comments
Labels
C-enhancement Category: Improvements

Comments

@victorz
Copy link

victorz commented May 2, 2024

When I start a new JSDoc comment, e.g., I'm used to having to type only the following in most code editors: /**<space><ret>.

The resulting comment structure then becomes this, where | is the caret:

/**
 * |
 */

I would love for this to be possible in Helix as well. And for it also to keep adding new *'s as I press enter, or reach the wrap limit (or at least when I run :reflow). (This was happening when I was typing the code for these comments in the GitHub issue text area, even.)

Would also love this for the regular /*<space><ret>, to result in:

/* |
 */

or maybe

/*
 * |
 */

Maybe even typing just /**<space> would result in /** | */? And similar for /*<space>?

It would make writing comments a lot smoother in my opinion. I'd be very content with :reflow learning this capability, at least.

Let me know what you think, please! And thank you for your time!

@victorz victorz added the C-enhancement Category: Improvements label May 2, 2024
@TornaxO7
Copy link
Contributor

TornaxO7 commented May 2, 2024

I think this is connected to #1730

@pascalkuthe
Copy link
Member

Yeah even tough it may not be quite the same thing I think that falls under th e block comment part of that issue

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

3 participants