Custom code folding

Feature requests
Post Reply
puya
Posts: 3
Joined: Tue May 20, 2008 12:46 pm

Custom code folding

Post by puya » Sat Jun 14, 2008 6:14 pm

Hi,

I looked around but found nothing about such a feature : code folding
similar with VS's #region , basically defining custom code folding regions.
Is this feature already available and I missed it ? If no, do you think you could add this in a future version ?

Keep up the great work ...

PuYa

crp_spaeth
Posts: 23
Joined: Sat Jul 25, 2009 6:28 pm

Post by crp_spaeth » Sat Jul 25, 2009 6:53 pm

First of all thank you very very much for releasing a new Version of this genius ide plugin to make our daily a bit easier again.


+1 for the Idea of puya

I am realy missing this little feature... Since I am programming with the Extjs framework and my Classfiles become bigger and bigger it would be really nice to be able to define something like a nested Fold Syntax.

This would allow the developer to start a bundle blocks of Functions as for example eventhalnders, overwrides like:

Code: Select all

/* region Eventhandlers */
onClick : function(){
  // code...
},

onMouseOver : function(){
  // code...
},
/* endregion */ 

/* region Overwrites */
initComponent : function(){
 /* region Configs */
 this.examplePropertie = 'a value';
 Ext.apply(this, {
    title : 'a titlepropertie',
    width : 400,
    height : 450,
    // and many more confingproperties
 })
 /* endregion */
 // code..
}
/* endregion */
Instead of scrolling through all those Functions to get toi the overwrites you could just fold those regions as you can do with coments.

The same thing with netsted regions this would be realy usefull for those big Ext.apply statements. Now you have to scroll through all your predefined configs of an extendet class to get to the actual code...

What do you think about that Idea (would make the life just another bit easier :) )
:lol: :lol: :lol: :lol:

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Post by eric_suen » Thu Aug 13, 2009 6:52 pm

I have create a quick fix, please download file http://www.agpad.com/downloads/com.spket.js_1.6.17.jar and replace the old one.

The default region tag is region and endregion, but you can change that in preferences "Spket -> Editors -> JavaScript Editor"

crp_spaeth
Posts: 23
Joined: Sat Jul 25, 2009 6:28 pm

Post by crp_spaeth » Fri Aug 14, 2009 3:54 am

SWEEEEET :)

puya
Posts: 3
Joined: Tue May 20, 2008 12:46 pm

Post by puya » Wed Nov 04, 2009 11:53 am

Hey, thanks for the implementation, works like a charm...

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests