I am trying to find the best PHP IDE for me on the Mac, I like Eclipse and Netbeans but I for some reason I can’t collapse PHP code, it only collapses the HTML parts, I’m guessing that I am missing an option somewhere? Both Coda and TextMate can collapse php code ok but I need code completion and realtime syntax checking.
Any advice would be very nice.
Thank You.
Go to ‘Window’ > ‘Preferences’ and expand the ‘PHP’ group. Expand ‘Editor’ and then click ‘Code Folding’. There should be a check box at the top that will let you enable/disable code folding. Inside of your PHP editor you should now see a little icon to the left of the code for folding the block of code.