Is it possible to disable code folding in PhpStorm ?

Answered

Hi !

I wonder if its possible to disable code folding in PhpStorm ?

I tried to uncheck all folding options :

But my code still gets folded:

I tried the expand recursively option in Code | Folding, but it doesn't seem to work.

It's a bit annoying that I can't manage to control this behaviour.

Is there any solution ? 

 

Cheers,

 

Rémy

 

 

6 comments
Comment actions Permalink

I see -- thanks for the 2nd screenshot.

 

Symfony framework? So you must be using Symfony plugin -- please check any options there.

I do not see anything like that in my code (but I do not use Symfony plugin or framework)

2
Comment actions Permalink

Hi there,

I see no code folding on your code screenshot.

1
Comment actions Permalink

@Andriy Bazanov

Hi,

After the " view: " in the render function there is some code that is folded (?), if I click on it, it expands. Wonder what they call that ? It folds and unfolds when I use cmd + / cmd - on mac, but I have to do that each time...

What it looks like when "unfolded" :

0
Comment actions Permalink

@Andriy Bazanov Thanks !!

The Symfony plugin was generating that code folding.

The weird thing was that I didn't have any access to the Symfony plugin options for some reason. Had to remove/reinstall the plugin to see the options, and being able to disable cold folding:

That solves it !

 

Thanks again.

0
Comment actions Permalink

>The weird things was that I didn't have any access to the Symfony plugin options for some reason. Had to remove/reinstall the plugin to see the options

Sounds odd. Quite possibly you have accessed it in a wrong way (e.g. when all projects are closed ... or accessed via Default Settings instead).

Anyway: it's resolved now. Enjoy.

0
Comment actions Permalink

Well if anyone else has the issue, in Languages & Frameworks | PHP , I had Laravel, Annotations, etc, but no Symfony !! (although the plugin was working). I may have had an older version of the plugin.

0

Please sign in to leave a comment.