+2

Being able to fold a function that only consists of three lines.

Burak Cankurtaran 11 lat temu 0

Functions definitions of three lines can not be folded. The function shown below in JavaScript is an example of this.


function foo() {

  doSomething();

}


Typically I have to add a blank line after the function declaration to be able to fold the function.