question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[folding] show comment first line for folded sections

See original GitHub issue

I think it could be really useful to change the multiline comment folding.

When you fold a comment like this (like above php function) :

/**
 * Print person name on terminal
 *
 * @param person $p
 * @return void
 */

You see this :

/** ...

In some editors like phpStorm or Eclipse, it’s folded like this :

* Print person name on terminal ...

That’s very more useful 😉

Is it possible to implement this kind of folding ?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:22
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
gorncommented, Mar 30, 2021

Language agnostic folding has been implemented, so this can be implemented as well now.

3reactions
abhishekmadhucommented, Apr 28, 2022

Is someone working on a PR? If not, I would like to try my hands on this. Will this be a good first issue for the repository?

@aeschli?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Folding commented sections in Texstudio 2.6.6 - TeX
Once you've commented out the \section command, it is not recognized as such anymore and thus cannot be folded. However, you can insert...
Read more >
Visual Code, Fold Comments - Stack Overflow
VS Code has a method of marking the start and end of a region that can be folded and expanded easily. And also...
Read more >
Folding - Vim Tips Wiki - Fandom
Setting foldcolumn to at least the level of folds you want displayed will show a sidebar, in which you can see which lines...
Read more >
C++ Code folding issues with trailing block comments
The fold for the 'for' loop consumes the first line of the trailing comment, but starts a fold for the remainder on the...
Read more >
FOLDS & DIMENSIONS
Fold. 8 1/2 x 11 - Letter Fold - 3 panel. F-1-F. Cover. (Front Panel). 3 5/8. 1. 5. 6. Finished Job Size....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found