This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When you press enter the indentation is not smart enough. It's just put the cursor on the column, where the line above begins. Also the indentation doesn't reflect number of spaces, which are defined in the options.
It should be smarter now. It should indent code blocks denoted by curlies {} properly. It still does not support the alternate control structures like: if ($whatever): echo "Hey!"; else: echo "Cool!"; endif; It may not work in some other cases too, but please be more specific. I'll keep this defect open to gather some feedback. So, if you find a situation when indentation is not correct please describe it here. Ideally with a code snippet and steps how to reproduce it. Use the pipe char '|' to mark the position of the caret. Thanks a lot The code should also pick up the indentation settings from Tools-Options. If it does not or does it wrong, please let me know. Thanks
Ok, since people tend to file separate issues for each broken scenario I'm closing this issue as fixed. I've fixed most of the issues and the indentation works correctly in most situations. Please file separate issues with concrete examples when things don't work as expected.