Feature description or problem with existing feature
With the premium version it is possible to fold the use statements. However, these statements still have to be manually closed. When using frameworks like Symfony there are generally a lot of use statements and it would be very convenient to have an option to auto hide them, ie. if I open a file these use statements are hidden, so I can read the main code faster.
Describe the solution you'd like
An option to enable auto folding / hiding use statements in files. Optionally a setting which specifies how many use statements must there be present for the auto folding to take place?
From memory intelephense does send FoldingRangeKind.imports for these, so the information is there already. Will leave this ticket open but I think it would be better implemented in vscode itself as a general language feature. There's a ticket open at https://github.com/microsoft/vscode/issues/40338 for this.
thank you for the info
Most helpful comment
From memory intelephense does send
FoldingRangeKind.importsfor these, so the information is there already. Will leave this ticket open but I think it would be better implemented in vscode itself as a general language feature. There's a ticket open at https://github.com/microsoft/vscode/issues/40338 for this.