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?
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:
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?
Daniel
Hi.
im want to use customzie folding, like in Netbeans or Visual Studio.
In Visual Studio, in c# i use
#region
#endregion
to collapse big parts of code.
In NetBeans its:
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:
http://youtrack.jetbrains.com/issue/OC-4807
Sorry there isn't a better answer for you at this time!
Sadly seems like this still has not made its way through. Such a shame as this is a much loved feature on Android Studio.