You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "Chris2011 (via GitHub)" <gi...@apache.org> on 2023/10/01 14:50:15 UTC

[GitHub] [netbeans] Chris2011 commented on issue #6504: Unable to unfold code block in java editor

Chris2011 commented on issue #6504:
URL: https://github.com/apache/netbeans/issues/6504#issuecomment-1742105010

   The problem was there for years in other languages like JS and PHP which my PR didn't add. This was unfortunately an added feature and never thought deeper about this. I had this problem way often and this happens if you have if and else for example as you can see in the example above. I don't like how NetBeans fold this I also want to change this to let the brackets like in other Editors/IDEs, than this will not happen again. This happens due to this:
   
   ```
   if(true) {...3 lines} else {
   
   }
   ```
   it should do it like this:
   
   ```
   if(true) {
   ... 3 lines
   } else {
   }
   ```
   or
   
   ```
   if(true) {... 3 lines
   } else {
   }
   ```
   
   Luckily my PR makes this more obvious, because of more using Java instead of JS.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists