Project: aptanastudio
Issue APSTUD-5030: Simple Inline Conditionals for PHP
I posted this request a while ago on StackOverflow here: http://stackoverflow.com/questions/9414781/aptana-simple-inline-conditionals-for-php It was suggested to post for an improvement here. I'd like to use Aptana for its PHP formatting ability. However there is one improvement I'd like to see, which is an option to keep simple inline statements on one line. The JavaScript editor does this for Eclipse, so I'd hope it's not too hard to replicate for Aptana (native). The desired format is this: if ($test == FALSE) return FALSE; However, Aptana PHP Formatter formats the line like this: if ($test == FALSE) return FALSE; This gets really annoying when you test anything more than 1 at a time: if ($test1 == FALSE) return FALSE; if ($test2 == 14) return FALSE; if ($test3 == "") return FALSE; becomes: if ($test1 == FALSE) return FALSE; if ($test2 == 14) return FALSE; if ($test3 == "") return FALSE; sgibly responded with this: There is no way to force it at the moment. The if body is wrapped as a block and forced to the second line.
Story points: 8