AppCode <editor-fold > Collapse block < /editor-fold>


<editor-fold > Collapse block < /editor-fold>

Why its not working  on App Code ?
Or how its may be implemented ?

Comment actions Permalink

Hi Konstantin,

I'm not sure what you are trying to do...  are you just trying to collapse / fold a block of code in the editor?  In that case, CMD+"-" should do that for whatever scope the cursor is in.  But I don't recognize the the XML you posted... are you writing a plugin, an IDE macro, or a doing a menu / UI customization?


Comment actions Permalink

im want to use customzie folding, like in Netbeans or Visual Studio.

In Visual Studio, in c# i use


to collapse big parts of code.

In NetBeans its:

// <editor-fold defaultstate="collapsed" desc="user-description">
  ...any code...
// </editor-fold>
Comment actions Permalink

Ahh!  I see.

Unfortunately, even though this exists in other JetBrains IDEs like IntelliJ and WebStorm, it doesn't appear to be implemented in AppCode currently.  There is already a ticket for it, which you can vote on here:

Sorry there isn't a better answer for you at this time!

Comment actions Permalink

Sadly seems like this still has not made its way through. Such a shame as this is a much loved feature on Android Studio.


Please sign in to leave a comment.