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.

Fold one line methods

See original GitHub issue

It would be nice if one liners like

pub fn root(&self) -> Node {
    Node { id: self.root, file: self }
}

Were folded by default, as in Java:

one-line-method

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
matkladcommented, Apr 10, 2017

Yep!

folding

The option at the very bottom.

0reactions
miedzinskicommented, Apr 10, 2017

@matklad Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

IntelliJ collapsing single line methods - java - Stack Overflow
Open 'Settings' from the File menu. Under 'Editor' -> 'General' -> 'Code Folding', you will find a 'Collapse by Default' section.
Read more >
IntelliJ IDEA - disable one-line methods (method code folding ...
1. Open Settings (Ctrl+Alt+S or File -> Settings... ), · 2. Go to the Editor -> General -> Code Folding, · 3. Uncheck...
Read more >
Is it possible to create a folding inside a single line?
Folding is used to show a range of lines in the buffer as a single line on the screen. And all the examples...
Read more >
fold.txt - Vim
There are six methods to select folds: manual manually define folds indent more indent means a higher fold level expr specify an expression...
Read more >
Folding - Vim Tips Wiki - Fandom
Normally it is best to use an automatic folding method, but manual folding is simple and can be useful for dealing with small...
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