-
Notifications
You must be signed in to change notification settings - Fork 874
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
Implementing folding for specific code blocks in java editor #4447
Comments
conditions, loops and try/catch The motivation about this was to implement those missing folding blocks in java editor. This was just implemented for imports, classes, inner classes, methods but not for stuff inside methods like if/else if/else, try/catch and loops because all of them are treated like as code blocks.
conditions, loops and try/catch The motivation about this was to implement those missing folding blocks in java editor. This was just implemented for imports, classes, inner classes, methods but not for stuff inside methods like if/else if/else, try/catch and loops because all of them are treated like as code blocks.
conditions, loops and try/catch The motivation about this was to implement those missing folding blocks in java editor. This was just implemented for imports, classes, inner classes, methods but not for stuff inside methods like if/else if/else, try/catch and loops because all of them are treated like as code blocks.
conditions, loops and try/catch The motivation about this was to implement those missing folding blocks in java editor. This was just implemented for imports, classes, inner classes, methods but not for stuff inside methods like if/else if/else, try/catch and loops because all of them are treated like as code blocks.
conditions, loops and try/catch The motivation about this was to implement those missing folding blocks in java editor. This was just implemented for imports, classes, inner classes, methods but not for stuff inside methods like if/else if/else, try/catch and loops because all of them are treated like as code blocks.
@Chris2011 there's no need to create an issue if you're already working on a pull request - it says this on the form, and just adds extra work. |
@neilcsmith-net Ahh ok, thx for the hint :). Maybe I overread it. |
useful feature |
Thx, PR is still created, need to change some things first as requested :) |
Any chance you could also include folding for /* */ style comments? |
@OnyxianSoul So normal block comments, not documentation comments, right? If yes, I will try. |
It would be great if it could recognize continuous "//" multi line comments but why not be able to do it on "/**/" commented parts also. |
…he#4447-fix-missing-java-codeblocks-folding
separate from method fold type for customization
…he#4447-fix-missing-java-codeblocks-folding
I had a look and it is already working. Go into a method, add /* Foo */ somwhere in the code and you can fold it. If you encounter a position, where this is not working, please create a new ticket with explicit steps to reproduce. @OnyxianSoul |
to the method block for deprecated Java Editor Lib
…itions, loops and try/catch The motivation about this was to implement those missing folding blocks in java editor. This was just implemented for imports, classes, inner classes, methods but not for stuff inside methods like if/else if/else, try/catch and loops because all of them are treated like code blocks. Also introducing code-block fold type for specific code parts and separate from method fold type for customization. Add missing implementation of new method for method folding and add method folding to deprecated Java Editor lib as requested. Map the code block to the method block for deprecated Java Editor Lib
…, loops and try/catch The motivation about this was to implement those missing folding blocks in java editor. This was just implemented for imports, classes, inner classes, methods but not for stuff inside methods like if/else if/else, try/catch and loops because all of them are treated like code blocks. Also introducing code-block fold type for specific code parts and separate from method fold type for customization. Add missing implementation of new method for method folding and add method folding to deprecated Java Editor lib as requested. Map the code block to the method block for deprecated Java Editor Lib
Coming in NB 19 |
Description
Code folding is a nice thing to collapse lots of code, unfortunately code folding is not possible in Java editor for condition blocks (if, else if, else), loops (do, for, while), switch/case blocks or try/catch blocks but it should as in other languages too.
Use case/motivation
Having the possibility to collapse/expand condition blocks, loop blocks and try/catch.
Related issues
No response
Are you willing to submit a pull request?
Yes
Code of Conduct
Yes
The text was updated successfully, but these errors were encountered: