-
Notifications
You must be signed in to change notification settings - Fork 28.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indentation breaks code folding #3891
Comments
What's currently implemented is a indentation based folding strategy. It purely looks at the indentation of the lines. When a line is followed by one or more line that have more indentation, then this is a foldable region. Empty lines are ignored. The next step will be to make folding strategy customizable, e.g. per language, to e.g. use brackets as beginning and end of a region. #3422 is the issue for that. |
I am using the latest version on Windows 7 Pro x64.
This may be by design, but a single-line code block cannot be collapsed.
However, changing the indentation "allows" it.
But when I try to collapse it, it does this:
If I remove the single-line code block, things look as expected:
Changing the indentation proves problematic, allowing me to collapse from the end brace:
Doing the collapse:
I'm not sure if the language matters, but this is in a PHP file.
The text was updated successfully, but these errors were encountered: