Skip to content

Problem whith collapse #18

@Quacrom

Description

@Quacrom

Hello friends.

I use Visual studio code as PHP IDE (among other languages). I'm currently using autofold with great pleasure, but there is a catch.

I want only the methods to collapse and not the conditions within them.

With the methods it works very well at level 3:
{"ext": ".php", "level": 3}

But it also minimizes conditions (if, else, etc.) and loops (for, foreach, etc.)

public function test_function () // <-- Collapse perfect!
{
If (condition = 1) // <-- I don't want it to collapse
{
echo 'Hello World!';
}
}

Thanks!

JM

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions