Skip to content
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

Automatically fold when finishing line/statement/expression (0.7.5) #39

Open
billybong opened this issue Apr 7, 2017 · 5 comments
Open

Comments

@billybong
Copy link

billybong commented Apr 7, 2017

Is there a way to automatically fold whenever I've typed something?
Currently in 0.7.5 my code only gets folded if I manually use the short-key or by reopening the file for editing by closing its tab and open again.

I remember how the SAM anonymous classes were automatically folded into lambdas just after writing them before lambas became available in Java 8.

@cheptsov
Copy link
Owner

cheptsov commented Apr 7, 2017

Did it really collapse the code automatically? Can't recall this.

@ciscorucinski
Copy link

@billybong I think this is out of scope for this project.

The IntelliJ platform itself doesn't have this mechanism that you are requesting (automatical in-line folding, folding code automatically after pressing enter, etc...).

Advanced Expression Folding seems to be about adding additional folding cases (folding getters and setters, folding first and last array indexes etc...)

@alexcohn
Copy link

@billybong how do you force folding with short-key? I only know that I can close and reopen the file, it's a pain.

@ciscorucinski
Copy link

@alexcohn there are no shortcuts here (but there should be). Your method is the fastest I think. Another method appears to Collapse All then to expand the code one level at a time (which can all be done via keyboard)

@alexcohn
Copy link

Thanks, Collapse All + Expand All works. This is easier that close + reopen, and faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants