views:

35

answers:

1

I would like to code folding in aptana 2 but I cannot figure out how to do it. How do you do it?

+1  A: 

You mean these things?

alt text

Go to

Window > Preferences

Type in code folding (my bad) into the search box, then change the preferences.

Yi Jiang
Yes that is what I want, but when I type in code folding it comes up with nothing at all
chromedude
@chromedude Hmmm... that can't be right - as far as I can tell, it's available by default in all interfaces - script, PHP, HTML and CSS. What OS are you using it on?
Yi Jiang
windows 7 64 bit
chromedude
here is a video of me doing it http://bit.ly/ba1qLd
chromedude
@chromedude It's folding - my mistake, sorry.
Yi Jiang
@Yi Jiang Got it thanks. hmm... does aptana only fold comments and functions? I thought it would fold ifs, loops, and try-catchs too?
chromedude
@chromedude. Apparently not, you'll have to look through it to be sure. I've never really had much use for this anyway.
Yi Jiang
@Yi Jiang ok, Thanks anyway. I find it useful because then if you have a bunch of if statements inside each other it can make it slightly less confusing to collapse the ones you are not working on.
chromedude