Vscode-intelephense: [Premium] Auto hide use statements

Created on 30 Aug 2020  路  2Comments  路  Source: bmewburn/vscode-intelephense

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?

Most helpful comment

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.

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zlianon picture zlianon  路  3Comments

ottopic picture ottopic  路  3Comments

mushmelty picture mushmelty  路  4Comments

muuvmuuv picture muuvmuuv  路  4Comments

nn-hh picture nn-hh  路  3Comments